src/Reflection/ReflectionClass.php
public function getProperty(string $name) : ?ReflectionProperty
    {
        $properties = $this->getProperties();

        if (! isset($properties[$name])) {
            return null;
        }

        return $properties[$name];
    }
public function getProperty(string $name) : ?ReflectionProperty
    {
        $properties = $this->getProperties();

        if (! isset($properties[$name])) {
            return null;
        }

        return $properties[$name];
    }
Get the property called $name.

Returns null if property does not exist.