403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/cvetdv.ru/bitrix/modules/yandex.market/lib/api/overlay/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/cvetdv.ru/bitrix/modules/yandex.market/lib/api/overlay/business.php
<?php
namespace Yandex\Market\Api\Overlay;

use Yandex\Market\Api;
use Yandex\Market\Psr;
use Yandex\Market\Reference\Concerns;

class Business extends Api\Reference\Model
{
	use Concerns\HasOnce;

	private $auth;
	private $logger;

	public function __construct($businessId, Api\Reference\Auth $auth = null, Psr\Log\LoggerInterface $logger = null)
	{
		parent::__construct([ 'id' => $businessId ]);

		if ($auth === null)
		{
			list($auth, $logger) = Api\Reference\AuthRepository::byBusiness($businessId);
		}

		$this->auth = $auth;
		$this->logger = $logger;
	}

	public function getId()
	{
		return (int)$this->requireField('id');
	}

	/** @return Api\Campaigns\Model\CampaignCollection */
	public function getCampaigns()
	{
		return Api\Campaigns\Facade::campaigns($this->auth)->sameBusiness($this->getId());
	}

	/** @return Api\Business\Warehouses\Response */
	public function getWarehouses()
	{
		return $this->once('getWarehouses', function() {
			return (new Api\Business\Warehouses\Request($this->getId(), $this->auth, $this->logger))->execute();
		});
	}

	/** @return Api\Business\Settings\Model\Settings */
	public function getSettings()
	{
		return $this->once('getSettings', function() {
			return (new Api\Business\Settings\Request($this->getId(), $this->auth, $this->logger))->execute()->getSettings();
		});
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit