/** !Route GET, class/$class */ public function classInfo($class) { $this->checkTables(); $result = $this->indexClass($class, ''); if ($result === false) { return new NotFoundResponse($this->request); } $this->reflector = $result; $className = Library::getClassName($class); $reflection = new RecessReflectionClass($className); $this->reflection = $reflection; $this->className = $className; if ($reflection->isSubclassOf('Model')) { $this->relationships = Model::getRelationships($className); $this->columns = Model::getColumns($className); $this->table = Model::tableFor($className); $this->source = Model::sourceNameFor($className); } }