Ejemplo n.º 1
0
 public static function generateNew($a_quote, $an_upload_mime_type, Email $an_email)
 {
     $id = Id::next();
     $quote = new Quote($a_quote);
     $creation_date = new DateTimeImmutable();
     $image_details = ImageDetails::fake();
     $upload = self::generateUpload($a_quote, $creation_date, $an_upload_mime_type);
     return new self($id, $quote, $upload, $image_details, $creation_date, $an_email);
 }