Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
vendor
/
laravel-notification-channels
/
telegram
/
src
:
TelegramContact.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace NotificationChannels\Telegram; use JsonSerializable; use NotificationChannels\Telegram\Traits\HasSharedLogic; /** * Class TelegramContact. */ class TelegramContact implements JsonSerializable { use HasSharedLogic; public function __construct(string $phoneNumber = '') { $this->phoneNumber($phoneNumber); } public static function create(string $phoneNumber = ''): self { return new self($phoneNumber); } /** * Contact phone number. * * @return $this */ public function phoneNumber(string $phoneNumber): self { $this->payload['phone_number'] = $phoneNumber; return $this; } /** * Contact first name. * * @return $this */ public function firstName(string $firstName): self { $this->payload['first_name'] = $firstName; return $this; } /** * Contact last name. * * @return $this */ public function lastName(string $lastName): self { $this->payload['last_name'] = $lastName; return $this; } /** * Contact vCard. * * @return $this */ public function vCard(string $vCard): self { $this->payload['vcard'] = $vCard; return $this; } }