Inheritance: extends Nelmio\Alice\FixtureInterface
Exemplo n.º 1
0
 public function __construct(FixtureWithFlagsInterface $fixture)
 {
     $flags = $fixture->getFlags();
     foreach ($flags as $flag) {
         if ($flag instanceof TemplateFlag) {
             $this->isATemplate = true;
             continue;
         }
         if ($flag instanceof ExtendFlag) {
             // Potential flag duplication is handled at the flagbag level
             array_unshift($this->extends, $flag->getExtendedFixture());
         }
     }
 }
Exemplo n.º 2
0
 /**
  * @inheritdoc
  */
 public function getFlags() : FlagBag
 {
     return $this->fixture->getFlags();
 }