| 1 | <?php |
||
| 7 | abstract class AbstractAction implements ActionInterface |
||
| 8 | { |
||
| 9 | protected $ident; |
||
| 10 | protected $checkClosure; |
||
| 11 | protected $renderClosure = false; |
||
| 12 | private $crud; |
||
| 13 | |||
| 14 | 56 | public function __construct() |
|
| 20 | |||
| 21 | 56 | public static function make() |
|
| 25 | |||
| 26 | 48 | public function setCrud(CRUD $crud) |
|
| 30 | |||
| 31 | 14 | public function crud(): CRUD |
|
| 35 | |||
| 36 | 20 | public function identifier() |
|
| 40 | |||
| 41 | 5 | public function check(\Closure $closure = null) |
|
| 42 | { |
||
| 43 | 5 | $this->checkClosure = $closure; |
|
| 44 | |||
| 45 | 5 | return $this; |
|
| 46 | } |
||
| 47 | |||
| 48 | 26 | public function isAllowed($model = null) |
|
| 54 | |||
| 55 | 5 | public function renderCheck(\Closure $closure = null) |
|
| 61 | |||
| 62 | 11 | public function shouldRender($model = null) |
|
| 71 | } |
||
| 72 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.