Example #1
0
 /**
  * Returns the value of a Key (modified value takes precedence)
  * @param null|string $key
  * @return mixed
  * @throws \Jazz\Model\Exception\KeyUndefined
  */
 public function get(string $key = null)
 {
     $ret = parent::get($key);
     if ($key !== null && $ret === null && $this->isDirty($key)) {
         $ret = $this->dirty($key);
     }
     return $ret;
 }