Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
- [Rudra\Annotation\Annotation](#rudra_annotation_annotation)
- [Rudra\Annotation\AnnotationInterface](#rudra_annotation_annotationinterface)
- [Rudra\Annotation\ParamsExtractor](#rudra_annotation_paramsextractor)
<hr>


---



<a id="rudra_annotation_annotation"></a>

Expand Down Expand Up @@ -30,8 +34,10 @@
### Class: Rudra\Annotation\ParamsExtractor
| Visibility | Function |
|:-----------|:---------|
| public | `getParams(array $exploded, string $assignment): array`<br>Parses an array of parameter strings into an associative array.<br>--------------------<br>Преобразует массив строк с параметрами в ассоциативный массив.<br>`from: "param1, param2 = 'param2', param3={param1;param2:'param2'}"`<br>`to: ["param1", "param2" => "param2", "param3" => ["param1", "param2" => "param2"]]` |
| private | `handleData(string $data, array $exploded): ?array`<br>Parses data into `key => value` pairs<br>--------------------<br>Преобразует данные в пары `ключ => значение` |
<hr>
| public | `getParams(array $exploded, string $assignment): array`<br>--------------------------------------------------------------\|<br>Parses an array of parameter strings into an associative array<br>--------------------------------------------------------------\|<br>Преобразует массив строк с параметрами в ассоциативный массив<br>--------------------------------------------------------------\|<br>------------------------------------------------------------------------------------\|<br>`from: "param1, param2 = 'param2', param3={param1;param2:'param2'}"`<br>`to: ["param1", "param2" => "param2", "param3" => ["param1", "param2" => "param2"]]`<br>------------------------------------------------------------------------------------\| |
| private | `handleData(string $data, array $exploded): ?array`<br>--------------------------------------------\|<br>Parses data into `key => value` pairs<br>--------------------------------------------\|<br>Преобразует данные в пары `ключ => значение`<br>--------------------------------------------\|<br>⚠️ IMPORTANT / ВАЖНО:<br>--------------------------------------------\|<br>Values inside arrays (curly braces) must not<br>contain the array assignment mark (`:`)<br>--------------------------------------------\|<br>Значения внутри массивов (фигурные скобки)<br>не должны содержать знак присваивания (`:`)<br>--------------------------------------------\| |


---

###### created with [Rudra-Documentation-Collector](#https://github.com/Jagepard/Rudra-Documentation-Collector)
###### created with [Rudra-Documentation-Collector](https://github.com/Jagepard/Rudra-Documentation-Collector)
Loading