GDS\Mapper\RESTv1::bestEffortFieldDefs PHP Метод

bestEffortFieldDefs() приватный Метод

Find and return the field definitions (if any) for the Entity
private bestEffortFieldDefs ( Entity $obj_gds_entity ) : array
$obj_gds_entity GDS\Entity
Результат array
    private function bestEffortFieldDefs(Entity $obj_gds_entity)
    {
        if ($obj_gds_entity->getSchema() instanceof Schema) {
            return $obj_gds_entity->getSchema()->getProperties();
        }
        if ($this->obj_schema instanceof Schema) {
            return $this->obj_schema->getProperties();
        }
        return [];
    }