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