src/Distilleries/Messenger/Helpers/FBUser.php 1 location
|
@@ 27-38 (lines=12) @@
|
| 24 |
|
* Message constructor. |
| 25 |
|
* @param array $config |
| 26 |
|
*/ |
| 27 |
|
public function __construct(array $config, Client $client) |
| 28 |
|
{ |
| 29 |
|
|
| 30 |
|
$this->client = $client; |
| 31 |
|
|
| 32 |
|
if ($this->checkConfig($config)) { |
| 33 |
|
$this->config = $config; |
| 34 |
|
} else { |
| 35 |
|
throw new ConfigException(trans('messenger::errors.config_not_valid')); |
| 36 |
|
} |
| 37 |
|
|
| 38 |
|
} |
| 39 |
|
|
| 40 |
|
/** |
| 41 |
|
* @return array |
src/Distilleries/Messenger/Helpers/Message.php 1 location
|
@@ 27-37 (lines=11) @@
|
| 24 |
|
* Message constructor. |
| 25 |
|
* @param array $config |
| 26 |
|
*/ |
| 27 |
|
public function __construct(array $config, Client $client) |
| 28 |
|
{ |
| 29 |
|
$this->client = $client; |
| 30 |
|
|
| 31 |
|
if ($this->checkConfig($config)) { |
| 32 |
|
$this->config = $config; |
| 33 |
|
} else { |
| 34 |
|
throw new ConfigException(trans('messenger::errors.config_not_valid')); |
| 35 |
|
} |
| 36 |
|
|
| 37 |
|
} |
| 38 |
|
|
| 39 |
|
protected function checkConfig(array $config) |
| 40 |
|
{ |