Prose\UsingZookeeper::__construct PHP Метод

__construct() публичный Метод

public __construct ( StoryTeller $st, $args = [] )
$st DataSift\Storyplayer\PlayerLib\StoryTeller
    public function __construct(StoryTeller $st, $args = array())
    {
        // call the parent constructor
        parent::__construct($st, $args);
        // $args[0] contains the hostname of our Zookeeper server
        $this->host = $args[0];
        // connect to zookeeper
        $this->zk = $this->connect($this->host);
    }