Class_.php 705 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
<?php

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

namespace Irstea\PlantUmlBundle\Model\Node;

11
12
use Irstea\PlantUmlBundle\Model\NamespaceInterface;

13
14
15
16
17
18
19
/**
 * Description of Class_
 *
 * @author Guillaume Perréal <guillaume.perreal@irstea.fr>
 */
class Class_ extends BaseNode
{
20
    public function __construct(NamespaceInterface $namespace, $id, $label, $isAbstract, $isFinal)
21
22
23
24
25
26
27
    {
        $classifiers = [];
        if ($isAbstract) {
            $classifiers[] = 'abstract';
        } elseif ($isFinal) {
            $classifiers[] = 'final';
        }
28
        parent::__construct($namespace, $id, $label, "class", $classifiers, []);
29
30
    }
}