@@ -20,36 +20,36 @@ class RecordCollection extends RequestCollection
2020{
2121 public function all (?int $ page = null , ?int $ per_page = null , ?string $ zone_id = null ): Records
2222 {
23- return $ this ->connector ->request (new ListRecords (page: $ page , per_page: $ per_page , zone_id: $ zone_id ))->send ()->throw ()-> dto ();
23+ return $ this ->connector ->request (new ListRecords (page: $ page , per_page: $ per_page , zone_id: $ zone_id ))->send ()->dto ();
2424 }
2525
2626 public function create (string $ zone_id , RecordType $ type , string $ name , string $ value , ?int $ ttl = null ): Record
2727 {
28- return $ this ->connector ->request (new CreateRecord (zone_id: $ zone_id , type: $ type , name: $ name , value: $ value , ttl: $ ttl ))->send ()->throw ()-> dto ();
28+ return $ this ->connector ->request (new CreateRecord (zone_id: $ zone_id , type: $ type , name: $ name , value: $ value , ttl: $ ttl ))->send ()->dto ();
2929 }
3030
3131 public function get (string $ record_id ): Record
3232 {
33- return $ this ->connector ->request (new GetRecord (record_id: $ record_id ))->send ()->throw ()-> dto ();
33+ return $ this ->connector ->request (new GetRecord (record_id: $ record_id ))->send ()->dto ();
3434 }
3535
3636 public function update (string $ record_id , string $ zone_id , RecordType $ type , string $ name , string $ value , ?int $ ttl = null ): Record
3737 {
38- return $ this ->connector ->request (new UpdateRecord (record_id: $ record_id , zone_id: $ zone_id , type: $ type , name: $ name , value: $ value , ttl: $ ttl ))->send ()->throw ()-> dto ();
38+ return $ this ->connector ->request (new UpdateRecord (record_id: $ record_id , zone_id: $ zone_id , type: $ type , name: $ name , value: $ value , ttl: $ ttl ))->send ()->dto ();
3939 }
4040
4141 public function delete (string $ record_id ): void
4242 {
43- $ this ->connector ->request (new DeleteRecord ($ record_id ))->send ()-> throw () ;
43+ $ this ->connector ->request (new DeleteRecord ($ record_id ))->send ();
4444 }
4545
4646 public function bulkCreate (array $ records ): BulkCreatedRecords
4747 {
48- return $ this ->connector ->request (new BulkCreateRecords ($ records ))->send ()->throw ()-> dto ();
48+ return $ this ->connector ->request (new BulkCreateRecords ($ records ))->send ()->dto ();
4949 }
5050
5151 public function bulkUpdate (array $ records ): BulkUpdatedRecords
5252 {
53- return $ this ->connector ->request (new BulkUpdateRecords ($ records ))->send ()->throw ()-> dto ();
53+ return $ this ->connector ->request (new BulkUpdateRecords ($ records ))->send ()->dto ();
5454 }
5555}
0 commit comments