public function __construct(Entity $entity, FoodSource $foodSource) { if (!$foodSource instanceof Block) { throw new \InvalidArgumentException("Food source must be a block"); } parent::__construct($entity, $foodSource); }