1 | <?php |
||
10 | trait ClassStructureTrait |
||
11 | { |
||
12 | use ObjectItemTrait; |
||
13 | |||
14 | /** |
||
15 | * @return ClassSchema |
||
16 | */ |
||
17 | public static function schema() |
||
33 | |||
34 | /** |
||
35 | * @return Properties|static |
||
36 | */ |
||
37 | public static function properties() |
||
41 | |||
42 | /** |
||
43 | * @param $data |
||
44 | * @param \Swaggest\JsonSchema\Context $options |
||
45 | * @return static |
||
46 | */ |
||
47 | public static function import($data, Context $options = null) |
||
51 | |||
52 | /** |
||
53 | * @param $data |
||
54 | * @param Context $options |
||
55 | * @return mixed |
||
56 | * @throws \Swaggest\JsonSchema\InvalidValue |
||
57 | */ |
||
58 | public static function export($data, Context $options = null) |
||
62 | |||
63 | /** |
||
64 | * @param ObjectItemContract $objectItem |
||
65 | * @return static |
||
66 | */ |
||
67 | public static function pick(ObjectItemContract $objectItem) |
||
72 | |||
73 | /** |
||
74 | * @return static |
||
75 | */ |
||
76 | public static function create() |
||
80 | |||
81 | protected $__validateOnSet = true; // todo skip validation during import |
||
82 | |||
83 | public function jsonSerialize() |
||
105 | |||
106 | /** |
||
107 | * @return static |
||
108 | */ |
||
109 | public static function names() |
||
117 | |||
118 | public function __set($name, $column) // todo nested schemas |
||
128 | |||
129 | public static function className() |
||
133 | |||
134 | public function validate() |
||
138 | } |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.