| 1 | <?php |
||
| 7 | abstract class AbstractAction implements ActionInterface |
||
| 8 | { |
||
| 9 | protected $ident; |
||
| 10 | protected $checkClosure; |
||
| 11 | protected $renderClosure = false; |
||
| 12 | private $crud; |
||
| 13 | |||
| 14 | 17 | public function __construct() |
|
| 20 | |||
| 21 | 17 | public static function make() |
|
| 25 | |||
| 26 | 13 | public function setCrud(CRUD $crud) |
|
| 30 | |||
| 31 | 1 | public function crud(): CRUD |
|
| 35 | |||
| 36 | 5 | public function identifier() |
|
| 40 | |||
| 41 | public function check(\Closure $closure = null) |
||
| 47 | |||
| 48 | 5 | public function isAllowed($model = null) |
|
| 54 | |||
| 55 | public function renderCheck(\Closure $closure = null) |
||
| 61 | |||
| 62 | 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.