public function __construct(Date $start, Date $end, $resourceId) { $this->start = $start; $this->end = $end; $this->resourceId = $resourceId; parent::__construct(new TestBlackoutItemView(1, $start, $end, $resourceId)); }