src/Daursu/Xero/models/BaseModel.php
public function setAttribute($key, $value)
	{
		if ($value instanceof BaseModel || $value instanceof Collection)
			$this->setRelationship($value, $key);
		elseif ( !is_array($value))
			$this->attributes[$key] = $value;
		else
			$this->setRelationship($value, $key);
	}
public function setAttribute($key, $value)
	{
		if ($value instanceof BaseModel || $value instanceof Collection)
			$this->setRelationship($value, $key);
		elseif ( !is_array($value))
			$this->attributes[$key] = $value;
		else
			$this->setRelationship($value, $key);
	}
public function setAttribute ( $ key , $ value ) { if ( $ value instanceof BaseModel || $ value instanceof Collection ) $ this -> setRelationship ( $ value , $ key ) ; elseif ( ! is_array ( $ value ) ) $ this -> attributes [ $ key ] = $ value ; else $ this -> setRelationship ( $ value , $ key ) ; }
Sets the attributes for this model

@param mixed $key
@param mixed $value
Sets the attributes for this model