public function getResource()
    {
        $fields = $this->getFields();
        $autoManage = $this->containsUpdateAtAndCreatedAt($fields);
        $resource = new Resource($fields, $this->getRelations(), $this->getIndexes(), $autoManage);
        $resource->setTableName($this->tableName);

        return $resource;
    }
public function getResource()
    {
        $fields = $this->getFields();
        $autoManage = $this->containsUpdateAtAndCreatedAt($fields);
        $resource = new Resource($fields, $this->getRelations(), $this->getIndexes(), $autoManage);
        $resource->setTableName($this->tableName);

        return $resource;
    }
public function getResource ( ) { $ fields = $ this -> getFields ( ) ; $ autoManage = $ this -> containsUpdateAtAndCreatedAt ( $ fields ) ; $ resource = new Resource ( $ fields , $ this -> getRelations ( ) , $ this -> getIndexes ( ) , $ autoManage ) ; $ resource -> setTableName ( $ this -> tableName ) ; return $ resource ; }
Gets the final resource.

@return CrestApps\CodeGenerator\Models\Resource
Gets the final resource .