Eusonlito\LaravelMeta\Meta::set PHP 메소드

set() 공개 메소드

public set ( string $key, string $value ) : string
$key string
$value string
리턴 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);
    }