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

		$raw     = $this->get_raw_attribute( $attribute );
		$columns = static::table()->get_columns();

		return $columns[ $attribute ]->convert_raw_to_value( $raw );
	}
protected function get_attribute_from_array( $attribute ) {

		$raw     = $this->get_raw_attribute( $attribute );
		$columns = static::table()->get_columns();

		return $columns[ $attribute ]->convert_raw_to_value( $raw );
	}
Get an attribute's value from the internal attributes array.

Will preferentially retrieve the value from the attribute value cache,
and update the attribute value cache if the raw value is scalar.

@since 2.0

@param string $attribute

@return mixed|null