1 | <?php |
||
10 | class Selector implements Renderable |
||
11 | { |
||
12 | /** |
||
13 | * @var array|Collection |
||
14 | */ |
||
15 | protected $selectors = []; |
||
16 | |||
17 | /** |
||
18 | * @var array |
||
19 | */ |
||
20 | protected static $selected; |
||
21 | |||
22 | /** |
||
23 | * Selector constructor. |
||
24 | */ |
||
25 | public function __construct() |
||
29 | |||
30 | /** |
||
31 | * @param string $column |
||
32 | * @param string|array $label |
||
33 | * @param array|\Closure $options |
||
34 | * @param null|\Closure $query |
||
35 | * |
||
36 | * @return $this |
||
37 | */ |
||
38 | public function select($column, $label, $options = [], $query = null) |
||
42 | |||
43 | /** |
||
44 | * @param string $column |
||
45 | * @param string $label |
||
46 | * @param array $options |
||
47 | * @param null|\Closure $query |
||
48 | * |
||
49 | * @return $this |
||
50 | */ |
||
51 | public function selectOne($column, $label, $options = [], $query = null) |
||
55 | |||
56 | /** |
||
57 | * @param string $column |
||
58 | * @param string $label |
||
59 | * @param array $options |
||
60 | * @param null $query |
||
61 | * @param string $type |
||
62 | * |
||
63 | * @return $this |
||
64 | */ |
||
65 | protected function addSelector($column, $label, $options = [], $query = null, $type = 'many') |
||
83 | |||
84 | /** |
||
85 | * Get all selectors. |
||
86 | * |
||
87 | * @return array|Collection |
||
88 | */ |
||
89 | public function getSelectors() |
||
93 | |||
94 | /** |
||
95 | * @return array |
||
96 | */ |
||
97 | public static function parseSelected() |
||
119 | |||
120 | /** |
||
121 | * @param string $column |
||
122 | * @param mixed $value |
||
123 | * @param bool $add |
||
124 | * |
||
125 | * @return string |
||
126 | */ |
||
127 | public static function url($column, $value = null, $add = false) |
||
158 | |||
159 | /** |
||
160 | * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View |
||
161 | */ |
||
162 | public function render() |
||
169 | } |
This check looks at variables that have been passed in as parameters and are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.