Skip to content

Commit a6c5fca

Browse files
committed
Defined strict getters for Contracts\...\Section properties
1 parent f62a6bb commit a6c5fca

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/contracts/Repository/Values/Content/Section.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,19 @@ class Section extends ValueObject
3333
* Name of the section.
3434
*/
3535
protected string $name;
36+
37+
public function getId(): int
38+
{
39+
return $this->id;
40+
}
41+
42+
public function getIdentifier(): string
43+
{
44+
return $this->identifier;
45+
}
46+
47+
public function getName(): string
48+
{
49+
return $this->name;
50+
}
3651
}

0 commit comments

Comments
 (0)