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/rospirotorg.ru/bitrix/modules/main/lib/web/webpacker/ |
Upload File : |
<?php namespace Bitrix\Main\Web\WebPacker; /** * Class Module * * @package Bitrix\Main\Web\WebPacker */ class Module { /** @var string $name */ protected $name; /** @var Resource\Package $package */ protected $package; /** @var Resource\Profile $profile */ protected $profile; /** * Module constructor. * * @param @var string $name Name. * @param Resource\Package|null $package Resource package. * @param Resource\Profile|null $profile Profile. */ public function __construct($name, Resource\Package $package = null, Resource\Profile $profile = null) { $this->name = $name; if ($package) { $this->package = $package; } if ($profile) { $this->profile = $profile; } } /** * Get name. * * @return string */ public function getName() { return $this->name; } /** * Set resource package. * * @param Resource\Package $package Resource package. * @return $this */ public function setPackage(Resource\Package $package) { $this->package = $package; return $this; } /** * Get package. * * @return Resource\Package|null */ public function getPackage() { return $this->package; } /** * Set profile. * * @param Resource\Profile $profile Profile. * @return $this */ public function setProfile(Resource\Profile $profile) { $this->profile = $profile; return $this; } /** * Get profile. * * @return Resource\Profile|null */ public function getProfile() { return $this->profile; } /** * To string. * * @return string */ public function __toString() { return $this->getName(); } }