예제 #1
0
파일: Pluck.php 프로젝트: jgswift/qinq
 /**
  * Retrieves values by an array field or object property
  * @return array
  */
 public function execute()
 {
     $args = $this->getArguments();
     $field = null;
     if (count($args) === 1) {
         $field = $args[0];
     }
     if (is_string($field)) {
         return $this->computeRelatedFields($field);
     }
     return parent::execute();
 }