get() 공개 메소드

This basically acts as a safe access to non-existing properties, unified array and property access (using getters) and access to the current value (empty path). If a property or key did not exist this method will return NULL.
public get ( string | integer | Context $path ) : mixed
$path string | integer | Context The path as string or Context value, will be unwrapped for convenience
리턴 mixed The value
 /**
  * @test
  * @dataProvider objectGetValues
  *
  * @param mixed $value
  * @param string $path
  * @param mixed $expectedGetValue
  */
 public function getValueByPathForObjectValues($value, $path, $expectedGetValue)
 {
     $context = new Context($value);
     $getValue = $context->get($path);
     $this->assertSame($getValue, $expectedGetValue);
 }