code: public function collection($listUp = null)
      {
          $collection = new $this->collectionName();
          if (!is_array($listUp)) {
              return $collection;
          }
  
          foreach ($listUp as $value) {
              $collection->add($this->entity($value));
          }
  
          return $collection;
      }
docs: @param array $listUp
  
  @return EntityCollection