protected function getPropertyBasedOnPatch($data, $key, $default, $patch)
    {
        if (!$patch) {
            $default = null;
        }

        return $this->getProperty($data, $key, $default);
    }
protected function getPropertyBasedOnPatch($data, $key, $default, $patch)
    {
        if (!$patch) {
            $default = null;
        }

        return $this->getProperty($data, $key, $default);
    }
protected function getPropertyBasedOnPatch ( $ data , $ key , $ default , $ patch ) { if ( ! $ patch ) { $ default = null ; } return $ this -> getProperty ( $ data , $ key , $ default ) ; }
Gets Property of data array. If PUT set to null

@param array $data
@param string $key
@param mixed $default
@param bool $patch

@return mixed
Gets Property of data array . If PUT set to null