Exemplo n.º 1
0
 /**
  * @return bool
  */
 public function isHasSource() : bool
 {
     $isHasSource = false;
     $index = $this;
     do {
         foreach ($index->iterateOptions() as $option) {
             if (eIndexOption::SOURCE()->is($option->getName())) {
                 $isHasSource = true;
             }
         }
         if ($index->isHasInheritance()) {
             $index = $index->getInheritance();
         }
     } while ($index->isHasInheritance());
     return $isHasSource;
 }