Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
viewspec.php
1<?php
2
4
6{
10 private $markup;
11
15 private $script;
16
20 private $styles;
24 private $assets;
25
29 private $settings;
30
31 public function toArray():array
32 {
33 return [
34 'markup' => $this->markup,
35 'script' => $this->script,
36 'styles' => $this->styles,
37 'settings' => $this->settings->toArray(),
38 'assets' => $this->assets->toArray(),
39 ];
40 }
41
45 public function getMarkup(): string
46 {
47 return $this->markup;
48 }
49
55 public function setMarkup(string $markup): ViewSpec
56 {
57 $this->markup = $markup;
58
59 return $this;
60 }
61
65 public function getScript(): string
66 {
67 return $this->script;
68 }
69
75 public function setScript(string $script): ViewSpec
76 {
77 $this->script = $script;
78
79 return $this;
80 }
81
85 public function getStyles(): string
86 {
87 return $this->styles;
88 }
89
95 public function setStyles(string $styles): ViewSpec
96 {
97 $this->styles = $styles;
98
99 return $this;
100 }
101
105 public function getSettings(): ViewSpecSettings
106 {
107 return $this->settings;
108 }
109
115 public function setSettings(ViewSpecSettings $settings): ViewSpec
116 {
117 $this->settings = $settings;
118
119 return $this;
120 }
121
125 public function getAssets(): Asset
126 {
127 return $this->assets;
128 }
129
135 public function setAssets(Asset $assets): ViewSpec
136 {
137 $this->assets = $assets;
138
139 return $this;
140 }
141}