An error occurred while loading the file. Please try again.
-
Guillaume Perréal authored8e3d291b
<?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';
}
parent::__construct($name, "class", $classifiers, [], $isAbstract ? 0 : ($isFinal ? 20 : 10));
}
}