СП
Size: a a a
СП
СП
SP
СП
SP
SP
СП
SP
class Thread {
...
public function addComment(
CommentRepositoryInterface $commentRepository,
int $authorId,
string $body
): void {
$comment = new Comment($this->getId(), $authorId, $body);
$commentRepository->save($comment);
}
...
}
add
.SP
SP
СП
SP
SP
СП
DT
СП
AL
СП
SP