public function modifyCollection(EndpointCollection $endpoints, ReflectionClass $class) { foreach ($endpoints->getAllPaths() as $path) { $path->where = array_merge($path->where, $this->value); } }