File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ public function setCategory($category)
5050
5151 public function setAttributes ($ attributes )
5252 {
53+ $ attributes = ($ attributes ) ? $ attributes : [];
5354 $ this ->attributes = $ attributes ;
5455 }
5556
@@ -92,4 +93,10 @@ public function setSize($size)
9293 {
9394 $ this ->size_id = $ size ;
9495 }
96+
97+ public function setbanned ($ banned_id )
98+ {
99+ //if(!is_int($banned_id)) return;
100+ $ this ->banned_id = $ banned_id ;
101+ }
95102}
Original file line number Diff line number Diff line change 1+ <?php namespace Atomx \Resources ;
2+
3+ use Atomx \AtomxClient ;
4+ use InvalidArgumentException ;
5+
6+ class Domain extends AtomxClient {
7+ protected $ endpoint = 'domain ' ;
8+
9+ public function setLanguage ($ lan = null )
10+ {
11+ if (empty ($ lan )) $ lan = null ;
12+ $ this ->language_id = $ lan ;
13+ }
14+
15+ public function setCategory ($ cat = 0 )
16+ {
17+ if (empty ($ cat )) $ cat = 0 ;
18+ $ this ->category = $ cat ;
19+ }
20+
21+ public function setAttributes ($ att = [])
22+ {
23+ if (!isset ($ att )) $ att = [];
24+ $ this ->attributes = $ att ;
25+ }
26+
27+
28+
29+ }
You can’t perform that action at this time.
0 commit comments