1{% extends "layout/base.twig" %} 2 3{% from "macros.twig" import class_item, class_name, class_type, member_signature, replace_backslash, sanitize, param_list, get_namespace %} 4 5{% block title %} 6{% set title = class %} 7{{ parent() }} 8{% endblock %} 9 10{% block content %} 11{% if class.shortdesc %} 12 13{{ class.shortdesc|raw }} 14{% endif %} 15{% if class.longdesc %} 16 17*Description* 18 19 20{{ class.longdesc|raw }} 21{% endif %} 22 23{% if class.methods %} 24 25*Methods* 26 27The {{ class_type(class) }} defines the following methods: 28 29{% for method in class.methods %} 30{% if method.name != "__construct" %} 31* <<{{ sanitize(replace_backslash(method)~"_"~method.name) }},`{{ method.name }}()`>> 32{% endif %} 33{% endfor %} 34 35{% for method in class.methods %} 36{% if method.name != "__construct" %} 37 38 39{% if class.shortname != "ClientBuilder" %} 40[[{{ sanitize(replace_backslash(method)~"_"~method.name) }}]] 41.`{{ method.name }}()` 42**** 43[source,php] 44---- 45/* 46{% if method.shortdesc %} 47{{ method.shortdesc|raw }} 48 ['body'] = (array) Request body 49{% endif %} 50*/ 51 52$params = [ 53 // ... 54]; 55 56$client = ClientBuilder::create()->build(); 57$response = {{ get_namespace(class) }}->{{ method.name }}({{ param_list(method)|trim(',') }}); 58---- 59**** 60{% else %} 61[[{{ sanitize(replace_backslash(method)~"_"~method.name) }}]] 62.`{{ method.name }}()` 63**** 64[source,php] 65---- 66/* 67{% if method.shortdesc %} 68 {{ method.shortdesc|raw }} 69 ['body'] = (array) Request body 70{% endif %} 71*/ 72 73---- 74**** 75{% endif %} 76{% endif %} 77 78{% endfor %} 79{% endif %} 80 81{% endblock %} 82 83