@param array $properties
@param string $name
@param mixed $defaultValue

@return mixed

@throws BadMethodCallException
770830
private function getValue(array $properties, $name, $defaultValue)
    {
        $propertyName = 'phing.log.mail.' . $name;
        $value = $properties[$propertyName];
        if ($value === null) {
            $value = $defaultValue;
        }
        if ($value === null) {
            throw new BadMethodCallException('Missing required parameter: ' . $propertyName);
        }
        return $value;
    }
168541
public String getProperty(String key, String defaultValue) {
        String val = properties.get(key);

        if (val == null) {
            val = defaultValue;
        }

        return val;
    }
401183
public static function getDefault($keys, $defaultValue) {
    try {
      $value = self::req($keys);
    } catch (MissingConfigVariableException $e) {
      return $defaultValue;
    }
    
    return $value;
  }
1245274
protected function getRequestParamValue(string $defaultValue = null, string $defaultName = 'id'): ?string
    {
        $paramName = $this->getRequestParamName($defaultName);

        return $this->request->get($paramName, $defaultValue);
    }
76634
protected function arg($name, $defaultValue = null)
    {
        $value = $this->getInput()->getArgument($name);

        if (null === $value) {
            return $defaultValue;
        }

        return $value;
    }
1033872
public function get($key, $defaultValue = array())
    {
        $this->populateFlash($key);

        if ($this->has($key)) {
            return $this->data[$key];
        }

        return $defaultValue;
    }
1318660
function get($name, $default=null) {
    $map = array_map(function($name) use($default){
      if ($this->__isset($name)) {
        return $this->__attributes[$name]['value'];
      } elseif ($this->propertyExists($name, 'default')) {
        return $this->__attributes[$name]['default'];
      }

      return (null === $default) ? null : $default;
    }, (array) $name);

    return count($map) > 1 ? $map : $map[0];
  }
510589
public static function get(array $data, string $key, $defaultValue = null)
    {
        $data = self::dataByPath($data, $key);
        if ($data === null) {
            $data = $defaultValue;
        }
        return $data;
    }
1344477
public function getValueByName(string $name, $default = null)
    {
        if (isset($this->values[$name])) {
            return $this->parseType($this->values[$name]);
        }

        return $default;
    }
880935
public function getHeaderValue($name, $defaultValue = null)
    {
        $header = $this->getHeader($name);
        if ($header !== null) {
            return $header->getValue();
        }
        return $defaultValue;
    }
1129800
@Override
    public <T> T get(String name, T defaultValue) {
        if (!containsKey(name)) {
            return defaultValue;
        }
        return get(name);
    }
116803
public String get(String propertyName, String defaultValue)
    {
        return properties.getProperty(propertyName, defaultValue);
    }
198279
protected function Value($fieldName, $defaultValue) {
        $form = Form::Current();
        if (!$form) {
            return $defaultValue;
        }
        return $form->GetValue($fieldName, $defaultValue);
    }
828722
public static function get($name, $altValue = null) {
        $page = self::me();

        if (\key_exists($name, $page->properties))
            return $page->properties[$name];

        return $altValue;
    }
1153036
protected function getDefaultValue(\Asgard\Entity\Entity $entity, $name, $property, $locale) {
		if($entity->get($name, $locale) !== null)
			return $entity->get($name, $locale);
	}
560377
public function getAttr(array $name, array &$context, $defaultValue = null)
    {
        $current = array_shift($name);

        if (!array_key_exists($current, $context)) {
            return $defaultValue;
        }

        return count($name)
            ? $this->getAttr($name, $context[$current], $defaultValue)
            : $context[$current];
    }
115910
public function setDefaultValues(array $defaultValues)
    {
        foreach ($defaultValues as $name => $value) {
            if (isset($this->fields[$name])) {
                $this->data[$name] = $value;
            }
        }
    }