/**
* Create a reflection of a class's property by it's name
*
* @param string $className
* @param string $propertyName
* @return ReflectionMethod
*/
public static function createFromName($className, $propertyName)
{
return ReflectionClass::createFromName($className)->getProperty($propertyName);
}