| @@ 61-68 (lines=8) @@ | ||
| 58 | * |
|
| 59 | * @return string |
|
| 60 | */ |
|
| 61 | public function serialize() |
|
| 62 | { |
|
| 63 | return serialize([ |
|
| 64 | 'name' => $this->getName(), |
|
| 65 | 'class' => $this->getClass(), |
|
| 66 | 'config' => $this->getConfig(), |
|
| 67 | ]); |
|
| 68 | } |
|
| 69 | ||
| 70 | /** |
|
| 71 | * Get property name |
|
| @@ 176-184 (lines=9) @@ | ||
| 173 | * |
|
| 174 | * @return array |
|
| 175 | */ |
|
| 176 | public function toArray() |
|
| 177 | { |
|
| 178 | return [ |
|
| 179 | 'name' => $this->getName(), |
|
| 180 | 'class' => $this->getClass(), |
|
| 181 | 'config' => $this->getConfig(), |
|
| 182 | 'hash' => $this->getHash(), |
|
| 183 | ]; |
|
| 184 | } |
|
| 185 | ||
| 186 | /** |
|
| 187 | * Get hash for this structure metadata item |
|
| @@ 105-113 (lines=9) @@ | ||
| 102 | * |
|
| 103 | * @return string |
|
| 104 | */ |
|
| 105 | public function serialize() |
|
| 106 | { |
|
| 107 | return serialize([ |
|
| 108 | 'name' => $this->getName(), |
|
| 109 | 'class' => $this->getClass(), |
|
| 110 | 'config' => $this->getConfig(), |
|
| 111 | 'properties' => $this->getProperties(), |
|
| 112 | ]); |
|
| 113 | } |
|
| 114 | ||
| 115 | /** |
|
| 116 | * Get metadata for all registered structure properties |
|