src/Webiny/AnalyticsDb/Query.php
public function dimension($name = null, $value = null)
    {
        $query = new Query\Dimensions($this->mongo, $this->entity, $this->ref, $this->dateRange);
        if (!empty($name)) {
            if (!empty($value)) {
                $query->setDimension($name, $value);
            } else {
                $query->setDimension($name);
            }
        }

        return $query;
    }
public function dimension($name = null, $value = null)
    {
        $query = new Query\Dimensions($this->mongo, $this->entity, $this->ref, $this->dateRange);
        if (!empty($name)) {
            if (!empty($value)) {
                $query->setDimension($name, $value);
            } else {
                $query->setDimension($name);
            }
        }

        return $query;
    }
public function dimension ( $ name = null , $ value = null ) { $ query = new Query \ Dimensions ( $ this -> mongo , $ this -> entity , $ this -> ref , $ this -> dateRange ) ; if ( ! empty ( $ name ) ) { if ( ! empty ( $ value ) ) { $ query -> setDimension ( $ name , $ value ) ; } else { $ query -> setDimension ( $ name ) ; } } return $ query ; }
Query the dimensions.

@param string $name  Dimension name
@param string $value Dimension value

@return Query\Dimensions
Query the dimensions .