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