src/base/BaseObject.php
public function canGetProperty($name, $checkVars = true)
    {
        return method_exists($this, 'get' . $name) || $checkVars && property_exists($this, $name);
    }
public function canGetProperty($name, $checkVars = true)
    {
        return method_exists($this, 'get' . $name) || $checkVars && property_exists($this, $name);
    }
public function canGetProperty ( $ name , $ checkVars = true ) { return method_exists ( $ this , 'get' . $ name ) || $ checkVars && property_exists ( $ this , $ name ) ; }
Returns a value indicating whether a property can be read.

A property is readable if:

- the class has a getter method associated with the specified name
(in this case, property name is case-insensitive);
- the class has a member variable with the specified name (when `$checkVars` is true);

@param string $name the property name
@param bool $checkVars whether to treat member variables as properties
@return bool whether the property can be read
@see canSetProperty()
Returns a value indicating whether a property can be read .