public function getRawAttributes( ?array $only = null, ?array $except = [], ?bool $schemaOnly = false )
	{
		$values = [];
		
		if( $only === null ) {
			$only = $this->attributes( $only, $except, $schemaOnly );
		}
		
		foreach( $only as $name ) {
			$values[ $name ] = $this->getAttribute( $name );
		}
		
		if( $except ) {
			$values = array_diff_key( $values, array_flip( $except ) );
		}
		
		/*
		foreach( $except as $name ) {
			unset( $values[ $name ] );
		}
		*/
		
		return $values;
	}
public function getRawAttributes( ?array $only = null, ?array $except = [], ?bool $schemaOnly = false )
	{
		$values = [];
		
		if( $only === null ) {
			$only = $this->attributes( $only, $except, $schemaOnly );
		}
		
		foreach( $only as $name ) {
			$values[ $name ] = $this->getAttribute( $name );
		}
		
		if( $except ) {
			$values = array_diff_key( $values, array_flip( $except ) );
		}
		
		/*
		foreach( $except as $name ) {
			unset( $values[ $name ] );
		}
		*/
		
		return $values;
	}
public function getRawAttributes ( ? array $ only = null , ? array $ except = [ ] , ? bool $ schemaOnly = false ) { $ values = [ ] ; if ( $ only === null ) { $ only = $ this -> attributes ( $ only , $ except , $ schemaOnly ) ; } foreach ( $ only as $ name ) { $ values [ $ name ] = $ this -> getAttribute ( $ name ) ; } if ( $ except ) { $ values = array_diff_key ( $ values , array_flip ( $ except ) ) ; } /*
		foreach( $except as $name ) {
			unset( $values[ $name ] );
		}
		*/ return $ values ; }
Returns attribute values.
@param array $only list of attributes whose value needs to be returned.
Defaults to null, meaning all attributes listed in [[attributes()]] will be returned.
If it is an array, only the attributes in the array will be returned.
@param array $except list of attributes whose value should NOT be returned.
@return array attribute values (name => value).
Returns attribute values .