Ejemplo n.º 1
0
 /**
  * parses value and returns the parsing result
  *
  * @param   string  $section
  * @param   string  $key
  * @param   mixed   $default
  * @return  mixed
  * @see     \stubbles\values\Parse::toType()
  * @since   4.1.0
  */
 public function parseValue(string $section, string $key, $default = null)
 {
     if (isset($this->propertyData[$section]) && isset($this->propertyData[$section][$key])) {
         if ($this->propertyData[$section][$key] instanceof Secret) {
             return $this->propertyData[$section][$key];
         }
         return Parse::toType($this->propertyData[$section][$key]);
     }
     return $default;
 }