add new method for get contractors by phones - PK-867
Created by: Xaka4ever
Добавил новый метод для выборки исполнителей по номерам телефонов. Задача
Merge request reports
Activity
Filter activity
requested review from @rustam
requested review from @rustam
1 <?php 2 3 4 namespace Flowwow\KonsolPro\Request; 5 6 use Flowwow\KonsolPro\Exception\KonsolProException; 7 use Spatie\DataTransferObject\DataTransferObject; 8 9 class RequestContractByPhone extends DataTransferObject 28 $this->validatePhones(); 29 30 return [ 31 'phone' => implode(',', $this->phones), 32 'page' => $this->page 33 ]; 34 } 35 36 /** 37 * Добавляем телефон в внутренний массив телефонов 38 * @param string $phone 39 * @return $this 40 */ 41 public function addPhone(string $phone): RequestContractByPhone 42 { 43 $this->phones[] = $phone;
Please register or sign in to reply