Class_.php 637 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php

/*
 * © 2016 IRSTEA
 * Guillaume Perréal <guillaume.perreal@irstea.fr>
 * Tous droits réservés.
 */

namespace Irstea\PlantUmlBundle\Model\Node;

/**
 * Description of Class_
 *
 * @author Guillaume Perréal <guillaume.perreal@irstea.fr>
 */
class Class_ extends BaseNode
{
    public function __construct($name, $isAbstract, $isFinal)
    {
        $classifiers = [];
        if ($isAbstract) {
            $classifiers[] = 'abstract';
        } elseif ($isFinal) {
            $classifiers[] = 'final';
        }
Guillaume Perréal's avatar
Guillaume Perréal committed
26
        parent::__construct($name, "class", $classifiers, [], $isAbstract ? 0 : ($isFinal ? 20 : 10));
27
28
    }
}