Webiny\Component\Config\Drivers\AbstractDriver::getString PHP Method

getString() final public method

Get formatted config data as string
final public getString ( ) : string
return string Formatted config data
    public final function getString()
    {
        $res = $this->getStringInternal();
        if (!$this->isString($res) && !$this->isStringObject($res)) {
            throw new ConfigException('AbstractDriver method _getString() must return string or StringObject.');
        }
        return StdObjectWrapper::toString($res);
    }

Usage Example

示例#1
0
 public function getAs(AbstractDriver $driver)
 {
     return $driver->getString();
 }