<?php
 namespace ModStart\Grid\Filter\Field; use ModStart\Grid\Filter\AbstractFilter; use ModStart\Support\Concern\HasFluentAttribute; abstract class AbstractFilterField { use HasFluentAttribute; private $fluentAttributes = [ 'label', ]; protected $label = ''; private $filter; public function __construct(AbstractFilter $filter) { $this->filter = $filter; $this->setup(); } protected function setup() { } public function __call($method, $arguments) { if ($this->isFluentAttribute($method)) { return $this->fluentAttribute($method, $arguments); } throw new \Exception('AbstractFilterField __call error : ' . $name); } }