-
Notifications
You must be signed in to change notification settings - Fork 131
Expand file tree
/
Copy pathParamMeta.php
More file actions
52 lines (49 loc) · 1.44 KB
/
Copy pathParamMeta.php
File metadata and controls
52 lines (49 loc) · 1.44 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
<?php
namespace PhpBoot\Metas;
use PhpBoot\Entity\ArrayContainer;
use PhpBoot\Entity\ContainerInterface;
use PhpBoot\Entity\EntityContainer;
use PhpBoot\Entity\ScalarTypeContainer;
use PhpBoot\Entity\TypeContainerInterface;
/**
* Class ParamMeta
* @package Once\route
* 函数参数元信息
*/
class ParamMeta{
/**
* ParamMeta constructor.
* @param string $name
* @param string $source
* @param string $type
* @param boolean $isOptional 是否可选, 如果可选, 则
* @param mixed|null $default
* @param boolean $isPassedByReference
* @param string $validation
* @param string $description
* @param TypeContainerInterface|null $container
*/
public function __construct($name, $source, $type, $isOptional ,$default, $isPassedByReference,$validation, $description="", $container=null){
$this->name = $name;
$this->source = $source;
$this->type = $type;
$this->default = $default;
$this->isOptional = $isOptional;
$this->isPassedByReference = $isPassedByReference;
$this->validation = $validation;
$this->description = $description;
$this->container = $container;
}
public $name;
public $source;
public $type;
public $default;
public $isOptional;
public $isPassedByReference;
public $validation;
public $description;
/**
* @var TypeContainerInterface|null
*/
public $container;
}