Phalcon\Queue\Beanstalk\Extended::__construct PHP Method

__construct() public method

public __construct ( array $options = null )
$options array
    public function __construct($options = null)
    {
        parent::__construct($options);
        $logger = null;
        $tubePrefix = '';
        if (is_array($options) || $options instanceof \ArrayAccess) {
            if (isset($options['prefix'])) {
                $tubePrefix = $options['prefix'];
            }
            if (isset($options['logger']) && $options['logger'] instanceof LoggerAdapter) {
                $logger = $options['logger'];
            }
        }
        $this->logger = $logger;
        $this->tubePrefix = $tubePrefix;
    }