Asvae\ApiTester\Entities\RouteInfo::extractWheres PHP Method

extractWheres() protected method

protected extractWheres ( )
    protected function extractWheres()
    {
        $prop = $this->getRouteReflection()->getProperty('wheres');
        $prop->setAccessible(true);
        $wheres = $prop->getValue($this->route);
        // Хак, чтобы в json всегда был объект
        if (empty($wheres)) {
            return (object) [];
        }
        return $wheres;
    }