| Path : /var/www/html/phkaynews-v2/vendor/livewire/livewire/src/ |
|
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
| Current File : /var/www/html/phkaynews-v2/vendor/livewire/livewire/src/ObjectPrybar.php |
<?php
namespace Livewire;
use ReflectionClass;
#[\AllowDynamicProperties]
class ObjectPrybar
{
protected $obj;
public function __construct($obj)
{
$this->obj = $obj;
$this->reflected = new ReflectionClass($obj);
}
public function getProperty($name)
{
$property = $this->reflected->getProperty($name);
$property->setAccessible(true);
return $property->getValue($this->obj);
}
public function setProperty($name, $value)
{
$property = $this->reflected->getProperty($name);
$property->setAccessible(true);
$property->setValue($this->obj, $value);
}
}