devfym /
intelliphp
| 1 | <?php |
||
| 2 | |||
| 3 | namespace devfym\IntelliPHP\Traits; |
||
| 4 | |||
| 5 | trait IsNotNullTrait |
||
| 6 | { |
||
| 7 | function is_not_null($value) |
||
|
0 ignored issues
–
show
|
|||
| 8 | { |
||
| 9 | return !is_null($value); |
||
| 10 | } |
||
| 11 | } |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.