| 1 | <?php |
||
| 5 | class Lead extends AbstractObject |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Insert new lead. |
||
| 9 | * |
||
| 10 | * @param $params |
||
| 11 | */ |
||
| 12 | public function create(array$params) |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Check if lead already exists on SF. |
||
| 21 | * |
||
| 22 | * @param string $phone |
||
| 23 | * @param string $email |
||
| 24 | * |
||
| 25 | * @return bool|array |
||
| 26 | */ |
||
| 27 | public function checkAlreadyExists($phone = null, $email = null) |
||
| 50 | } |
||
| 51 |
In PHP, under loose comparison (like
==, or!=, orswitchconditions), values of different types might be equal.For
stringvalues, the empty string''is a special case, in particular the following results might be unexpected: