Conditions | 4 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | public function recognizeType($stuff) |
||
32 | { |
||
33 | switch (true) { |
||
34 | case $stuff instanceof \Closure: |
||
35 | return static::TYPE_CLOSURE; |
||
36 | case $stuff instanceof AbstractBuilder: |
||
37 | return static::TYPE_SUB_QUERY; |
||
38 | case false !== strpos($stuff, '\\'): |
||
39 | return static::TYPE_CLASS_NAME; |
||
40 | } |
||
41 | |||
42 | return static::TYPE_TABLE_NAME; |
||
43 | } |
||
44 | |||
57 | } |