Skip to content

Commit ac19086

Browse files
committed
Added Domain.php
1 parent d02dbd0 commit ac19086

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

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 = 'en')
10+
{
11+
if(empty($lan)) $lan = 'en';
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)