src/Resource/AbstractResource.php
public function getValue($key)
    {
        if ( array_key_exists( $key, $this->values ) ) {
            return $this->values[$key];
        }

        $remote_data = $this->getRemoteData();
        if ( array_key_exists( $key, $remote_data ) ) {
            return $remote_data[$key];
        }

        return null;
    }
public function getValue($key)
    {
        if ( array_key_exists( $key, $this->values ) ) {
            return $this->values[$key];
        }

        $remote_data = $this->getRemoteData();
        if ( array_key_exists( $key, $remote_data ) ) {
            return $remote_data[$key];
        }

        return null;
    }
Gets value of object.

First, it's been checked if the key exists in the local values that will be saved later in Zammad
by a call to save().

If not found, additionally the remote data will be searched for the key. This
ensures that a value is being returned that hasn't been changed locally.

@param string $key       Key to fetch value for.

@return mixed            Value or null if not found. Null could also be the set value.