Exemple #1
0
 /**
  * Get the command's property list
  * @param  array $spec
  * @param  PropertyProvider $propertyProvider
  * @return PropertyInterface[]
  */
 protected function getProperties($spec, PropertyProvider $propertyProvider)
 {
     $properties = array();
     if (!isset($spec['properties'])) {
         return $properties;
     }
     foreach ($spec['properties'] as $property) {
         $properties[] = $propertyProvider->getPropertyByName($property);
     }
     return $properties;
 }