FOF30\Hal\Link::__set PHP Méthode

__set() public méthode

Magic setter for the protected properties
public __set ( string $name, mixed $value ) : void
$name string The name of the property to set, sans the underscore
$value mixed The value of the property to set
Résultat void
    public function __set($name, $value)
    {
        if ($name == 'href' && empty($value)) {
            return;
        }
        $property = '_' . $name;
        if (property_exists($this, $property)) {
            $this->{$property} = $value;
        }
    }