src/Axolotl/Model.php
public function get_original_attribute( $name ) {
		$original_attributes = $this->original;

		if ( ! is_object( $original_attributes[ static::OBJECT_KEY ] ) ) {
			unset( $original_attributes[ static::OBJECT_KEY ] );
		}

		$original = new static( $original_attributes );

		return $original->get_attribute( $name );
	}
public function get_original_attribute( $name ) {
		$original_attributes = $this->original;

		if ( ! is_object( $original_attributes[ static::OBJECT_KEY ] ) ) {
			unset( $original_attributes[ static::OBJECT_KEY ] );
		}

		$original = new static( $original_attributes );

		return $original->get_attribute( $name );
	}
public function get_original_attribute ( $ name ) { $ original_attributes = $ this -> original ; if ( ! is_object ( $ original_attributes [ static :: OBJECT_KEY ] ) ) { unset ( $ original_attributes [ static :: OBJECT_KEY ] ) ; } $ original = new static ( $ original_attributes ) ; return $ original -> get_attribute ( $ name ) ; }
Retrieve the model's original attribute value.

@param string $name

@return mixed

@throws PropertyDoesNotExistException If property isn't found.
Retrieve the model s original attribute value .