-
Notifications
You must be signed in to change notification settings - Fork 0
/
PostType.php
59 lines (52 loc) · 1013 Bytes
/
PostType.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
/**
* PostType
*
* @author Whizark <devaloka@whizark.com>
* @see http://whizark.com
* @copyright Copyright (C) 2015 Whizark.
* @license MIT
*/
namespace Devaloka\Component\PostType;
/**
* Class PostType
*
* @package Devaloka\Component\PostType
*/
class PostType implements PostTypeInterface
{
use PostTypeTrait;
/**
* @var string The Post Type name.
*/
protected $name;
/**
* @var mixed[] The Post Type options.
*/
protected $options = [];
/**
* The constructor.
*
* @param string $name The Post Type name.
* @param mixed[] $options The Post Type options.
*/
public function __construct($name, array $options = [])
{
$this->name = $name;
$this->options = $options;
}
/**
* {@inheritDoc}
*/
public function getName()
{
return $this->name;
}
/**
* {@inheritDoc}
*/
public function getOptions()
{
return $this->options;
}
}