���� JFIF �� � ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /var/www/html/trader/vendor/zaloplatform/zalo-php-sdk/src/ |
<?php /** * Zalo © 2019 * */ namespace Zalo; use Zalo\Authentication\AccessToken; use Zalo\Exceptions\ZaloSDKException; /** * Class ZaloApp * * @package Zalo */ class ZaloApp implements \Serializable { /** * @var string The app ID. */ protected $id; /** * @var string The app secret. */ protected $secret; /** * @param string $id * @param string $secret * * @throws ZaloSDKException */ public function __construct($id, $secret) { if (!is_string($id) // Keeping this for BC. Integers greater than PHP_INT_MAX will make is_int() return false && !is_int($id)) { throw new ZaloSDKException('The "app_id" must be formatted as a string since many app ID\'s are greater than PHP_INT_MAX on some systems.'); } // We cast as a string in case a valid int was set on a 64-bit system and this is unserialised on a 32-bit system $this->id = (string)$id; $this->secret = $secret; } /** * Returns the app ID. * * @return string */ public function getId() { return $this->id; } /** * Returns the app secret. * * @return string */ public function getSecret() { return $this->secret; } /** * Serializes the ZaloApp entity as a string. * * @return string */ public function serialize() { return implode('|', [$this->id, $this->secret]); } /** * Unserializes a string as a ZaloApp entity. * * @param string $serialized */ public function unserialize($serialized) { list($id, $secret) = explode('|', $serialized); $this->__construct($id, $secret); } }