Class_.php 628 Bytes
Newer Older
1
2
<?php
/*
Guillaume Perréal's avatar
CS.    
Guillaume Perréal committed
3
4
 * Copyright (C) 2016-2017 IRSTEA
 * All rights reserved.
5
6
7
8
 */

namespace Irstea\PlantUmlBundle\Model\Node;

9
10
use Irstea\PlantUmlBundle\Model\NamespaceInterface;

11
/**
Guillaume Perréal's avatar
CS.    
Guillaume Perréal committed
12
 * Description of Class_.
13
14
15
 */
class Class_ extends BaseNode
{
16
    public function __construct(NamespaceInterface $namespace, $name, $isAbstract, $isFinal)
17
18
    {
        $classifiers = [];
19
        $stereotypes = [];
20
21
22
        if ($isAbstract) {
            $classifiers[] = 'abstract';
        } elseif ($isFinal) {
23
            $stereotypes[] = 'final';
24
        }
Guillaume Perréal's avatar
CS.    
Guillaume Perréal committed
25
        parent::__construct($namespace, $name, 'class', $classifiers, $stereotypes);
26
27
    }
}