<?php
namespace Psy;
class Sudo
{
public static function fetchProperty($object, string $property)
{
$prop = self::getProperty(new \ReflectionObject($object), $property);
return $prop->getValue($object);
}
public static function assignProperty($object, string $property, $value)
{