예제 #1
0
파일: Last.php 프로젝트: jgswift/qinq
 /**
  * Update collection to only contain last item
  * @return array
  */
 public function execute()
 {
     $collection = $this->getCollection();
     $this->arguments[] = count($collection) - 1;
     return parent::execute();
 }
예제 #2
0
파일: First.php 프로젝트: jgswift/qinq
 /**
  * Update collection to only contain first item
  * @return array
  */
 public function execute()
 {
     $this->arguments[] = 0;
     return parent::execute();
 }