Prose\FromConfig::get PHP Метод

get() публичный Метод

public get ( $name )
    public function get($name)
    {
        // what are we doing?
        $log = usingLog()->startAction("get '{$name}' from the active config");
        // get the details
        $config = $this->st->getActiveConfig();
        if (!$config->hasData($name)) {
            $log->endAction("no such setting '{$name}'");
            return null;
        }
        // if we get here, then success \o/
        $value = $config->getData($name);
        // log the settings
        $printer = new DataPrinter();
        $logValue = $printer->convertToString($value);
        $log->endAction("value is: '{$logValue}'");
        // all done
        return $value;
    }