File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?php namespace Atomx \Resources ;
22
33use Atomx \AtomxClient ;
4+ use Atomx \Resources \Traits \NameTrait ;
5+ use Atomx \Resources \Traits \StateTrait ;
46use InvalidArgumentException ;
57
68class Creative extends AtomxClient {
7- protected $ endpoint = 'creative ' ;
8-
9- public function setName ($ name )
10- {
11- $ this ->name = $ name ;
12- }
13-
14- public function setState ($ state )
15- {
16- if (!in_array ($ state , ['active ' , 'inactive ' ]))
17- throw new InvalidArgumentException ('API: Invalid state provided ' );
9+ use NameTrait, StateTrait;
1810
19- $ this ->state = strtoupper ($ state );
20- }
11+ protected $ endpoint = 'creative ' ;
2112
2213 public function setBanner ($ filename , $ extension )
2314 {
@@ -102,4 +93,10 @@ public function setSize($size)
10293 {
10394 $ this ->size_id = $ size ;
10495 }
96+
97+ public function setbanned ($ banned_id )
98+ {
99+ //if(!is_int($banned_id)) return;
100+ $ this ->banned_id = $ banned_id ;
101+ }
105102}
You can’t perform that action at this time.
0 commit comments