getAllPaths() публичный Метод

Get all of the paths for the given endpoint collection.
public getAllPaths ( ) : array
Результат array
Пример #1
0
 /**
  * Set the domain on the endpoints.
  *
  * @param EndpointCollection $endpoints
  *
  * @return void
  */
 protected function setEndpointDomains(EndpointCollection $endpoints)
 {
     foreach ($endpoints->getAllPaths() as $path) {
         if (is_null($path->domain)) {
             $path->domain = $this->domain;
         }
     }
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 public function modifyCollection(EndpointCollection $endpoints, ReflectionClass $class)
 {
     foreach ($endpoints->getAllPaths() as $path) {
         $path->where = array_merge($path->where, $this->value);
     }
 }