Example #1
0
 /**
  * Create feature of the given definition.
  *
  * @return Feature
  */
 protected function createFeature()
 {
     $feature = new Feature($this, $this->getId());
     $feature->setProperty('type', lcfirst(static::getType()));
     $feature->setProperty('options', $this->getOptions());
     return $feature;
 }