Ejemplo n.º 1
0
 /**
  * Extracts and returns the user data from the vocabulary object
  *
  * @param  Vocabulary $object
  * @return array
  */
 public function extract(Vocabulary $object)
 {
     $data = ['id' => $object->getId(), 'name' => $object->getName(), 'description' => $object->getDescription(), 'enabled' => $object->isEnabled()];
     return $data;
 }