src/components/Configurator.php
public function setting($key = null) : Storage
    {
        $this->getStorage()->clearKey();
        $storage = $this->getStorage()->addKey(self::SETTING);
        if ($key === null) {
            return $this->getStorage()->get();
        }
        return $storage->addKey($key);
    }
public function setting($key = null) : Storage
    {
        $this->getStorage()->clearKey();
        $storage = $this->getStorage()->addKey(self::SETTING);
        if ($key === null) {
            return $this->getStorage()->get();
        }
        return $storage->addKey($key);
    }
public function setting ( $ key = null ) : Storage { $ this -> getStorage ( ) -> clearKey ( ) ; $ storage = $ this -> getStorage ( ) -> addKey ( self :: SETTING ) ; if ( $ key === null ) { return $ this -> getStorage ( ) -> get ( ) ; } return $ storage -> addKey ( $ key ) ; }
Get a settings of key.
@param null $key
@return Storage
Get a settings of key .