ReflectionClass::getProperty

( excerpt from http://php.net/manual/en/reflectionclass.getproperty.php )

public function getProperty(
  string $name,
): ReflectionProperty;

Gets a ReflectionProperty for a class's property.

Parameters

  • string $name

Returns

  • mixed - A ReflectionProperty.