Commit 9dd7820d authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Correction du traitement de "final".

No related merge requests found
Showing with 3 additions and 2 deletions
+3 -2
...@@ -20,11 +20,12 @@ class Class_ extends BaseNode ...@@ -20,11 +20,12 @@ class Class_ extends BaseNode
public function __construct(NamespaceInterface $namespace, $name, $isAbstract, $isFinal) public function __construct(NamespaceInterface $namespace, $name, $isAbstract, $isFinal)
{ {
$classifiers = []; $classifiers = [];
$stereotypes = [];
if ($isAbstract) { if ($isAbstract) {
$classifiers[] = 'abstract'; $classifiers[] = 'abstract';
} elseif ($isFinal) { } elseif ($isFinal) {
$classifiers[] = 'final'; $stereotypes[] = 'final';
} }
parent::__construct($namespace, $name, "class", $classifiers, []); parent::__construct($namespace, $name, "class", $classifiers, $stereotypes);
} }
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment