Skip to content

Commit 83fb9ed

Browse files
committed
Merge branch 'master' of https://github.com/atomx/atomx-api-php
2 parents 23f8b4d + cd313d4 commit 83fb9ed

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

Atomx/Resources/Creative.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

Atomx/Resources/Domain.php

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
}

0 commit comments

Comments
 (0)