GDS\Gateway\ProtoBuf::__construct PHP Метод

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

Set up the dataset and optional namespace
public __construct ( null | string $str_dataset = null, null | string $str_namespace = null )
$str_dataset null | string
$str_namespace null | string
    public function __construct($str_dataset = null, $str_namespace = null)
    {
        if (null === $str_dataset) {
            if (isset($_SERVER['APPLICATION_ID'])) {
                $this->str_dataset_id = $_SERVER['APPLICATION_ID'];
            } else {
                throw new \Exception('Could not determine DATASET, please pass to ' . get_class($this) . '::__construct()');
            }
        } else {
            $this->str_dataset_id = $str_dataset;
        }
        $this->str_namespace = $str_namespace;
    }