-
Notifications
You must be signed in to change notification settings - Fork 131
Expand file tree
/
Copy pathPropertyMeta.php
More file actions
58 lines (54 loc) · 1.36 KB
/
Copy pathPropertyMeta.php
File metadata and controls
58 lines (54 loc) · 1.36 KB
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
<?php
namespace PhpBoot\Metas;
use PhpBoot\Entity\ArrayContainer;
use PhpBoot\Entity\EntityContainer;
use PhpBoot\Entity\ScalarTypeContainer;
use PhpBoot\Entity\TypeContainerInterface;
class PropertyMeta
{
/**
* PropertyMeta constructor.
* @param string $name
* @param string $type
* @param boolean $isOptional
* @param mixed|null $default
* @param string $validation
* @param string $summary
* @param string $description
* @param TypeContainerInterface|null $container
*/
public function __construct($name, $type=null, $isOptional=false,$default=null, $validation=null, $summary='', $description='', $container = null){
$this->name = $name;
$this->type = $type;
$this->default = $default;
$this->isOptional = $isOptional;
$this->validation = $validation;
$this->summary = $summary;
$this->description = $description;
$this->container = $container;
}
/**
* @var TypeContainerInterface|null
*/
public $container;
public $name;
public $type;
public $default;
public $isOptional;
/**
* 如
* "in:0,1,2"
* [*.num, "in:0,1,2"]
*
* @var array|string
*/
public $validation;
/**
* @var string
*/
public $summary = '';
/**
* @var string
*/
public $description='';
}