1 | <?php |
||
46 | final class SimpleType |
||
47 | { |
||
48 | /** |
||
49 | * return the object's fully-qualified class name |
||
50 | * |
||
51 | * @param object $item |
||
52 | * the item to examine |
||
53 | * @return string |
||
54 | * the examined item's class name |
||
55 | */ |
||
56 | public static function fromObject($item) |
||
57 | { |
||
58 | return get_class($item); |
||
59 | } |
||
60 | |||
61 | /** |
||
62 | * return any data type's type name |
||
63 | * |
||
64 | * @param mixed $item |
||
65 | * the item to examine |
||
66 | * @return string |
||
67 | * the basic type of the examined item |
||
68 | */ |
||
69 | public static function from($item) |
||
81 | |||
82 | /** |
||
83 | * support for using this value builder as an object |
||
84 | * |
||
85 | * @deprecated since 2.10.0 |
||
86 | * @codeCoverageIgnore |
||
87 | * @param mixed $item |
||
88 | * the item to examine |
||
89 | * @return string |
||
90 | * the basic type of the examined item |
||
91 | */ |
||
92 | public static function fromMixed($item) |
||
96 | |||
97 | /** |
||
98 | * support for using this value builder as an object |
||
99 | * |
||
100 | * @param mixed $item |
||
101 | * the item to examine |
||
102 | * @return string |
||
103 | * the basic type of the examined item |
||
104 | */ |
||
105 | public function __invoke($item) |
||
109 | } |