Sokil\Mongo\Collection::__get PHP Method

__get() public method

public __get ( $name )
    public function __get($name)
    {
        // support of deprecated property, use selg::getMongoCollection instead
        if ($name === '_mongoCollection') {
            return $this->getMongoCollection();
        }
        return $this->getDocument($name);
    }