Skip to content
Snippets Groups Projects

add new method for get contractors by phones - PK-867

Merged Rustam requested to merge george1 into master

Created by: Xaka4ever

Добавил новый метод для выборки исполнителей по номерам телефонов. Задача

Merge request reports

Merged by RustamRustam 2 years ago (Feb 28, 2022 12:55pm UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Rustam
    Rustam @rustam started a thread on commit 1946a8df
  • 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
  • Rustam
  • Rustam
  • Rustam
  • Rustam
    Rustam @rustam started a thread on commit 48a805ab
  • 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;
    • Author Owner

      Created by: iseed838

      Давай еще тут проверим что введенный телефон соовествует шаблону

    • Author Owner

      Created by: Xaka4ever

      Добавил проверку

  • Author Owner

    Created by: iseed838

    Review: Approved

  • Author Owner

    Created by: Msik

    Review: Approved

  • Author Owner

    Merged by: Xaka4ever at 2022-02-28 12:55:35 UTC

  • closed

  • Rustam merged manually

    merged manually

  • Please register or sign in to reply
    Loading