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
:
TelegramLocation.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 TelegramLocation. */ class TelegramLocation implements JsonSerializable { use HasSharedLogic; /** * Telegram Location constructor. * * @param null|float|string $latitude * @param null|float|string $longitude */ public function __construct($latitude = null, $longitude = null) { $this->latitude($latitude); $this->longitude($longitude); } /** * @param null|float|string $latitude * @param null|float|string $longitude * * @return static */ public static function create($latitude = null, $longitude = null): self { return new static($latitude, $longitude); } /** * Location's latitude. * * @param float|string $latitude * * @return $this */ public function latitude($latitude): self { $this->payload['latitude'] = $latitude; return $this; } /** * Location's latitude. * * @param float|string $longitude * * @return $this */ public function longitude($longitude): self { $this->payload['longitude'] = $longitude; return $this; } }