<?php  namespace App\Services\Orders;  use Illuminate\Http\Request;  final class OrderData { 	public function __construct( 		protected bool $approvedByBuyer, 		protected ?float $advancePayment, 		protected ?string $warehouseId, 		protected ?string $buyerId, 		protected ?string $note, 		protected ?array $emailRecipients, 		protected ?string $authorId, 		protected ?string $authorType 	{}  	public static function createFromRequest(Request $request): self 	{ 		$user = $request->user();  		return new self( 			$request->boolean('approved_by_buyer'), 			$request->advance_payment, 			$request->warehouse_id, 			$request->buyer_id, 			$request->note, 			$request->email_recipients, 			$user->user_id, 			$user->user_type, 		); 	}  	public function getApprovedByBuyer(): bool{}  	public function getAdvancePayment(): ?float{}  	public function getWarehouseId(): ?string{}  	public function getBuyerId(): ?string{}  	public function getNote(): ?string{}  	public function getEmailRecipients(): ?array{}  	public function getAuthorId(): ?string{}  	public function getAuthorType(): ?string{} }