示例#1
0
 /**
  * @param array|Traversable|stdClass|null $data
  * @return CourtCreateInputFilter
  */
 private function getCreateInputFilter($data = [])
 {
     if (!$this->createInputFilter) {
         $this->createInputFilter = new CourtCreateInputFilter($this->facilityService);
     }
     return $this->createInputFilter->setData($data);
 }
    /**
     * Constructor
     *
     * @param FacilityService $facilityService
     */
    public function __construct(
        FacilityService $facilityService
    ) {
        parent::__construct($facilityService);

        $this->add(
            [
                'name' => 'id',
                'filters' => [
                    [
                        'name' => 'Digits'
                    ],
                ],
            ]
        );
    }