public function __construct($postId, User $actor, array $data) { $this->postId = $postId; $this->actor = $actor; $this->data = $data; }