isPropertyReadable() публичный Метод

public isPropertyReadable ( object $object, string $property ) : boolean
$object object
$property string
Результат boolean
Пример #1
0
 /**
  * @param string $property
  *
  * @return bool
  */
 private function isObjectPropertyReadable($property)
 {
     $subject = $this->getWrappedObject();
     return is_object($subject) && $this->accessInspector->isPropertyReadable($subject, $property);
 }
 function it_should_detect_a_getter_if_there_is_no_magic_getter_but_wrapped_inspector_finds_one(AccessInspector $accessInspector)
 {
     $accessInspector->isPropertyReadable(new \StdClass(), 'foo')->willReturn(true);
     $this->isPropertyReadable(new \StdClass(), 'foo')->shouldReturn(true);
 }