I'm using Zend\_Soap\_Server to create a webservice using the autodiscovery mode in PHP, and I was wondering how to generate the restrictions(minOccurs, maxOccurs) on a specific variable/function parameter using phpDoc or any other way.

Like the following, when I'm using this phpDoc over a function say `myFunction`,

```
 /**
 *
 * @param   string $param1  Parameter One
 * @param   string $param2  Parameter Two
 * @return  array  $return
 */

```

it gives me the following message in WSDL:

```
<message name="myFunctionIn">
  <part name="param1" type="xsd:string"/>
  <part name="param2" type="xsd:string"/>
</message>
<message name="myFunctionOut">
  <part name="return" type="soap-enc:Array"/>
</message>

```

So if I want to restrict the function params(`param1` & `param2`) using `minOccurs` and `maxOccurs` how can I do it so that the WSDL message would be like this:

```
 <message name="myFunctionIn">
  <part name="param1" minOccurs="0" maxOccurs="1" type="xsd:string"/>
  <part name="param2" minOccurs="1" maxOccurs="1" type="xsd:string"/>
 </message>

```

I've searched over the internet but couldn't find any useful information.
Thanks!