* @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:----akAYrQI0xgHMJ+a+CF+12mseAIHN/apWN1i8H79rJrrDZFHKFBBFIKAI1qk6Uf4iNljmf9QlieFoZ8UzlecQ7n4dU0ZuqIF43W+ggsdNrxlDJCSwvji4SSm9wvA/D5LKTO4WdR2DrWYvnJ7OkfqjRR/F4AShTcx5UWD1ksmKf0S23fk2a2RONXD0Po03pSChHvPAk7S+XHljXNvGbwgCeK6Tkq1V2EY4O5t4bittBFQ1eUi1wwRtL/imyz3HIWZP2hwJMLdtLExtF7mHoBRxr15lTNVL3X4V3Tk+7z0loouxls9jWW/btC6zRiYEtpdhVPBksU4btPejNIHIuSgAjZUHKMxSMCG6bgMFabtou4nRUu9VfaNYV+vfwCvgyUNsrC6y1uLlc5kPYvc4R2WbiS+zEVAvtaePm7Sxv8bBQ2/t1UXkNnBGB9Q5GFyjqvYO+rw3zgtJNr08iIOiFymO87FScxdlLzqBCR7+LkFGAPC5Sn/dE6SzyDl1Sf6vHYVGdmIPp73dHvJd2jPD2Iws4bdCZgtlA/OxlipX3fzq8SnWcAsKixP/To6RwcTv0dM2h6tAQsnZn7bqdLToAMHotoMG2fqqICIek+IM/maAmrUBsi1cEOTrKMczsq55jRsJQ5+3EcEyH6edgaZYFk/y4jspKjBvUIAkOIO5nuy6sMg=----ATTACHMENT:----ODYxMDI1OTI0MDQ2ODIxNiA4NTU5NzY1NzYwNzgwNTMgODI1MjI4Nzk1MTQ0NDI5MA==