Nextras\Orm\Entity\Reflection\EntityMetadata::getProperties PHP Method

getProperties() public method

public getProperties ( ) : PropertyMetadata[]
return PropertyMetadata[]
    public function getProperties()
    {
        return $this->properties;
    }

Usage Example

Example #1
0
 protected function loadGettersSetters()
 {
     $methods = [];
     foreach ($this->reflection->getMethods() as $method) {
         $methods[strtolower($method->name)] = $method;
     }
     foreach ($this->metadata->getProperties() as $name => $property) {
         $getter = 'getter' . strtolower($name);
         if (isset($methods[$getter])) {
             $property->hasGetter = TRUE;
         }
         $setter = 'setter' . strtolower($name);
         if (isset($methods[$setter])) {
             $property->hasSetter = TRUE;
         }
     }
 }
All Usage Examples Of Nextras\Orm\Entity\Reflection\EntityMetadata::getProperties