public function __construct($itemId, $userId) { $this->itemId = $itemId; $this->userId = $userId; }
/** * Create a new event instance. * * @param string $itemId * @param string $userId * @param string $comment */ public function __construct($itemId, $userId, $comment) { parent::__construct($itemId, $userId); $this->comment = $comment; }