Collections\Dictionary::get PHP Method

get() public method

public get ( $key )
    public function get($key)
    {
        return array_key_exists($key, $this->storage) ? $this->storage[$key] : null;
    }

Usage Example

コード例 #1
0
 /**
  * Busca por uma estratégia a partir do nome definido para a mesma.
  * @param $name
  * @return mixed
  * @throws StrategyNotFoundException
  */
 public function getStrategy($name)
 {
     if (!$this->dictionary->containsKey($name)) {
         throw new StrategyNotFoundException();
     }
     return $this->dictionary->get($name);
 }
All Usage Examples Of Collections\Dictionary::get