Laravel AT Protocol Client (alpha & unstable)
at dev 455 B view raw
1<?php 2 3namespace SocialDept\AtpClient\Data\Responses; 4 5use Illuminate\Contracts\Support\Arrayable; 6 7/** 8 * Response class for endpoints that return empty objects. 9 * 10 * @implements Arrayable<string, mixed> 11 */ 12class EmptyResponse implements Arrayable 13{ 14 public function __construct() {} 15 16 public static function fromArray(array $data): self 17 { 18 return new self; 19 } 20 21 public function toArray(): array 22 { 23 return []; 24 } 25}