public function __construct($identifier, ReflectionClass $reflector, Collection $annotations, Collection $actions) { $this->identifier = $identifier; $this->reflector = $reflector; $this->annotations = $annotations; $this->actions = $actions; $this->setResourceOnActions(); }