public function setAttribute($key, $value)
	{
		if (array_key_exists($key, $this->attachedFiles)) 
		{
			if ($value)
			{
				$attachedFile = $this->attachedFiles[$key];
				$attachedFile->setUploadedFile($value);
			}

			return;
		}
		
		parent::setAttribute($key, $value);
	}
public function setAttribute($key, $value)
	{
		if (array_key_exists($key, $this->attachedFiles)) 
		{
			if ($value)
			{
				$attachedFile = $this->attachedFiles[$key];
				$attachedFile->setUploadedFile($value);
			}

			return;
		}
		
		parent::setAttribute($key, $value);
	}
public function setAttribute ( $ key , $ value ) { if ( array_key_exists ( $ key , $ this -> attachedFiles ) ) { if ( $ value ) { $ attachedFile = $ this -> attachedFiles [ $ key ] ; $ attachedFile -> setUploadedFile ( $ value ) ; } return ; } parent :: setAttribute ( $ key , $ value ) ; }
Handle the dynamic setting of attachment objects.

@param  string $key
@param  mixed $value
@return void
Handle the dynamic setting of attachment objects .