Skip to content

Commit 062bda2

Browse files
antonioturdoAntonio Turdo
and
Antonio Turdo
authored
Add a few methods to Concept class (#20)
Co-authored-by: Antonio Turdo <[email protected]>
1 parent 0f85749 commit 062bda2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/ClassDiagram/Concept/Concept.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,21 @@ public function getId(): string
8484
return $this->identifier;
8585
}
8686

87+
public function addAttribute(Attribute $attribute): void
88+
{
89+
$this->attributes[] = $attribute;
90+
}
91+
92+
public function addMethod(Method $method): void
93+
{
94+
$this->methods[] = $method;
95+
}
96+
97+
public function setAnnotation(string $annotation): void
98+
{
99+
$this->annotation = $annotation;
100+
}
101+
87102
public static function isSafeMode(): bool
88103
{
89104
return self::$safeMode;

0 commit comments

Comments
 (0)