Eusonlito\LaravelMeta\Meta::set PHP Méthode

set() public méthode

public set ( string $key, string $value ) : string
$key string
$value string
Résultat string
    public function set($key, $value)
    {
        $value = $this->plain($value);
        $method = 'set' . $key;
        if (method_exists($this, $method)) {
            return $this->{$method}($value);
        }
        return $this->metas[$key] = self::cut($value, $key);
    }