* @license http://www.apache.org/licenses/LICENSE-2.0 * @link http://phpsx.org */ class ObjectReader { /** * Returns all available properties of an object * * @param \Doctrine\Common\Annotations\Reader $reader * @param \ReflectionClass $class * @return \ReflectionProperty[] */ public static function getProperties(Reader $reader, ReflectionClass $class) { $props = $class->getProperties(); $result = []; foreach ($props as $property) { // skip statics if ($property->isStatic()) { continue; } // check whether we have an exclude annotation $exclude = $reader->getPropertyAnnotation($property, Annotation\Exclude::class); if ($exclude !== null) { continue; } // get the property name $key = $reader->getPropertyAnnotation($property, Annotation\Key::class); $name = null; if ($key !== null) { $name = $key->getKey(); } if (empty($name)) { $name = $property->getName(); } $result[$name] = $property; } return $result; } } __halt_compiler();----SIGNATURE:----aQpAeBVIP2IKbGOQ7PMKfiB2UYj2ezcZTdRh2eLMSgTawmNTBJCuduoVe7y6GYvP6iWwPyCVky2VIfUOzJi8Kj/UvyAQsp/vr/WrTxT+MO/NhIgQvscg+YaV2DPHJJaVPt1XPRugibjwmQV+9fJPJc0RFE72Xfp94p2GSSo0WFugeoCAsR48InQENxEUCI2i0WYzT0mwzzrTmDiNkLOzMBAxuUVOS0wIukidqDF+O8IkbRBgYAFZ6RKOtlf06DTPcNwHnYXTi9H65Jrf19ATPmjZ77Dr4IKCtboawT/MLkZY/hiB0A9kARZ6f9IFmmKKF2EPYnxh27H+VOQom1LvGlEGNVhK6dFzt6oQ29KX5IzD7xhhSErSiy2mtA19FGuk4wy/qKsfqxEutCtB8KfzU5S56z5KQYA+BJOIPPt3KQ6X98/F/syLjAR8PpjUsr2883MT/al12gnwzdQ5TDyyjlhzbodP+UBzrTEvnbH/iXWsH5l4Pr2A1mBZuoXz2juI/N8AXscnQAMHeLNnmV5PTxpLDzylUyySvm/BZNvxNWMGhKOZrYxdVK2YBaUIlgX23e4XPTzxMLoz0lLcEI7atGx9GvBRnIpiAhw05PpbiHLgfCVOpVx4pd+sYPhbtN8Nuow40w2cR+Nm94hrrk2TgFDs/OF6Id/yvHn9k9iJv8I=----ATTACHMENT:----OTM3NTUyMjQ0OTA1OTk3MSA4Njk3NzQ2OTgwNDE5MDEwIDY3MzEzNzU0OTUxNjEzNzQ=