Type/Transform/ImageToStringTransformer.php
public function transform($data): File
	{
		$file = file_exists($data) ? $data : null;
		$file = is_null($file) ? new File('', false) : new File($file, true);

		return $file;
	}
public function transform($data): File
	{
		$file = file_exists($data) ? $data : null;
		$file = is_null($file) ? new File('', false) : new File($file, true);

		return $file;
	}
public function transform ( $ data ) : File { $ file = file_exists ( $ data ) ? $ data : null ; $ file = is_null ( $ file ) ? new File ( '' , false ) : new File ( $ file , true ) ; return $ file ; }
Transforms an string to File

@param  File|null $data

@return string
Transforms an string to File