/** * Implement configurations * * @param null|array $config * @throws \Sonar\Exceptions\BeanstalkMapperException */ public function __construct(array $config = null) { if ($this->connect === null) { try { $this->connect = new Beanstalk($config); $this->connect->connect(); } catch (\Exception $e) { throw new BeanstalkMapperException($e->getMessage()); } } }
public function connect() { return parent::connect(); }