← All changes
|
back/Libraries/Sabberworm/CSS/src/Comment/Commentable.php
+26
-0
10.10.1
→
11.1.0
View file →
| @@ -1,0 +1,26 @@ | ||
| 1 | +<?php | |
| 2 | + | |
| 3 | +declare(strict_types=1); | |
| 4 | + | |
| 5 | +namespace AcyMailing\Libraries\Sabberworm\CSS\Comment; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * A standard implementation of this interface is available in the `CommentContainer` trait. | |
| 9 | + */ | |
| 10 | +interface Commentable | |
| 11 | +{ | |
| 12 | + /** | |
| 13 | + * @param list<Comment> $comments | |
| 14 | + */ | |
| 15 | + public function addComments(array $comments): void; | |
| 16 | + | |
| 17 | + /** | |
| 18 | + * @return list<Comment> | |
| 19 | + */ | |
| 20 | + public function getComments(): array; | |
| 21 | + | |
| 22 | + /** | |
| 23 | + * @param list<Comment> $comments | |
| 24 | + */ | |
| 25 | + public function setComments(array $comments): void; | |
| 26 | +} | |