Esempio n. 1
0
 /**
  * Find objects by selector
  *
  * @param string|SelectorInterface $selector Object selector
  * @return array Objects
  */
 public function findObjects($selector)
 {
     if (!$selector instanceof SelectorInterface) {
         $selector = SelectorFactory::createFromString($selector);
     }
     $objects = [];
     /** @var ObjectInterface $object */
     foreach ($this->repository->findObjects($selector) as $object) {
         $objects[] = ApparatObjectFactory::create($object);
     }
     return $objects;
 }