Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
module.php
1<?php
2
4
10class Module
11{
13 protected $name;
14
16 protected $package;
17
19 protected $profile;
20
28 public function __construct($name, Resource\Package $package = null, Resource\Profile $profile = null)
29 {
30 $this->name = $name;
31
32 if ($package)
33 {
34 $this->package = $package;
35 }
36 if ($profile)
37 {
38 $this->profile = $profile;
39 }
40 }
41
47 public function getName()
48 {
49 return $this->name;
50 }
51
58 public function setPackage(Resource\Package $package)
59 {
60 $this->package = $package;
61 return $this;
62 }
63
69 public function getPackage()
70 {
71 return $this->package;
72 }
73
80 public function setProfile(Resource\Profile $profile)
81 {
82 $this->profile = $profile;
83 return $this;
84 }
85
91 public function getProfile()
92 {
93 return $this->profile;
94 }
95
101 public function __toString()
102 {
103 return $this->getName();
104 }
105}
setProfile(Resource\Profile $profile)
Definition module.php:80
setPackage(Resource\Package $package)
Definition module.php:58
__construct($name, Resource\Package $package=null, Resource\Profile $profile=null)
Definition module.php:28