src/Model.php
protected function get_attribute_value( $attribute ) {

		$value = $this->get_attribute_from_array( $attribute );

		if ( method_exists( $this, $this->get_accessor_method_for_attribute( $attribute ) ) ) {
			$value = call_user_func( array( $this, $this->get_accessor_method_for_attribute( $attribute ) ), $value );
		}

		return $value;
	}
protected function get_attribute_value( $attribute ) {

		$value = $this->get_attribute_from_array( $attribute );

		if ( method_exists( $this, $this->get_accessor_method_for_attribute( $attribute ) ) ) {
			$value = call_user_func( array( $this, $this->get_accessor_method_for_attribute( $attribute ) ), $value );
		}

		return $value;
	}
Retrieves an attribute's value and calls the accessor method if it exists.

@since 2.0

@param string $attribute

@return mixed