ReflectionClass::getProperty

( excerpt from http://php

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

net/manual/en/reflectionclass.getproperty.php )

Gets a ReflectionProperty for a class's property.

Parameters

  • string $name

Return Values

  • mixed - A ReflectionProperty.