| 1 | <?php |
||
| 13 | class BlockController extends Controller |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var Block |
||
| 17 | */ |
||
| 18 | protected $block; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param Block $block |
||
| 22 | */ |
||
| 23 | public function __construct($block = null) |
||
| 32 | |||
| 33 | public function index() |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @param string $action |
||
| 40 | * |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | public function Link($action = null) |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return string - link to page this block is on |
||
| 57 | */ |
||
| 58 | public function pageLink() |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @return Block |
||
| 67 | */ |
||
| 68 | public function getBlock() |
||
| 72 | |||
| 73 | /** |
||
| 74 | * CSS Classes to apply to block element in template. |
||
| 75 | * |
||
| 76 | * @return string $classes |
||
| 77 | */ |
||
| 78 | public function CSSClasses($stopAtClass = 'DataObject') |
||
| 82 | } |
||
| 83 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..