1 | <?php |
||
31 | class ModelAbstract extends \stdClass |
||
32 | { |
||
33 | const CONTEXT = ''; |
||
34 | |||
35 | /** |
||
36 | * ModelAbstract constructor. |
||
37 | * |
||
38 | * @param \stdClass|null $oData |
||
39 | * @param \stdClass|null $oLayers |
||
40 | * |
||
41 | * @throws \mrcnpdlk\MojePanstwo\Exception |
||
42 | */ |
||
43 | 7 | public function __construct(\stdClass $oData = null, \stdClass $oLayers = null) |
|
60 | |||
61 | /** |
||
62 | * Cleaning telephone number |
||
63 | * |
||
64 | * @param $nr |
||
65 | * |
||
66 | * @return string|null |
||
67 | */ |
||
68 | 2 | protected function cleanTelephoneNr($nr) |
|
80 | |||
81 | /** |
||
82 | * Convert string to integer |
||
83 | * |
||
84 | * @param string $value |
||
85 | * |
||
86 | * @return int|null |
||
87 | */ |
||
88 | 7 | protected function convertToId($value) |
|
92 | |||
93 | /** |
||
94 | * Remove namespace class from the property name |
||
95 | * |
||
96 | * @param string $property |
||
97 | * |
||
98 | * @return string |
||
99 | */ |
||
100 | 7 | protected function stripProperty(string $property): string |
|
104 | |||
105 | } |
||
106 |