GDS\Mapper\RESTv1::bestEffortFieldDefs PHP Method

bestEffortFieldDefs() private method

Find and return the field definitions (if any) for the Entity
private bestEffortFieldDefs ( Entity $obj_gds_entity ) : array
$obj_gds_entity GDS\Entity
return 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 [];
    }