Skip to content

Commit

Permalink
Add a few methods to Concept class (#20)
Browse files Browse the repository at this point in the history
Co-authored-by: Antonio Turdo <[email protected]>
  • Loading branch information
antonioturdo and Antonio Turdo authored Feb 4, 2024
1 parent 0f85749 commit 062bda2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/ClassDiagram/Concept/Concept.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,21 @@ public function getId(): string
return $this->identifier;
}

public function addAttribute(Attribute $attribute): void
{
$this->attributes[] = $attribute;
}

public function addMethod(Method $method): void
{
$this->methods[] = $method;
}

public function setAnnotation(string $annotation): void
{
$this->annotation = $annotation;
}

public static function isSafeMode(): bool
{
return self::$safeMode;
Expand Down

0 comments on commit 062bda2

Please sign in to comment.