ACF_Rest_Request::__getpublicACF 1.0

Magic getter for accessing read-only properties. Should we ever need to enforce a getter method, we can do so here.

Method of the class: ACF_Rest_Request{}

No Hooks.

Returns

String|null.

Usage

$ACF_Rest_Request = new ACF_Rest_Request();
$ACF_Rest_Request->__get( $name );
$name(string) (required)
The desired property name.

ACF_Rest_Request::__get() code ACF 6.0.4

public function __get( $name ) {
	if ( in_array( $name, $this->readonly_props ) ) {
		return $this->$name;
	}

	return null;
}