# php docblock uses unfamiliar property type "map"

**URL:** <https://community.hubspot.com/t/php-docblock-uses-unfamiliar-property-type-map/34306>\
**Category:** APIs & Integrations\
**Tags:** php\
**Created:** [March 22, 2021, 10:23pm UTC](https://community.hubspot.com/t/php-docblock-uses-unfamiliar-property-type-map/34306 "2021-03-22T22:23:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![danhammari](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/danhammari/32/11850_2.png) [@danhammari](https://community.hubspot.com/u/danhammari)\
**Post date:** [March 22, 2021, 10:23pm UTC](https://community.hubspot.com/t/php-docblock-uses-unfamiliar-property-type-map/34306/1 "2021-03-22T22:23:35Z")

</div>

I am trying to implement a SimplePublicObject in PHP but the docblock syntax describes a property type name “map” that is not a valid PHP type. Here is an example from the SimplePublicObject that CRM Deals implements:

namespace: HubSpot\Client\Crm\Deals\Model

class: SimplePublicObject

method: setProperties

```lia-code-sample
 /**
 * Sets properties
 *
 * @param map[string,string] $properties properties
 *
 * @return $this
 */
 public function setProperties($properties)
 {
 $this->container['properties'] = $properties;

 return $this;
 }

```

The property type of map appears to be a simple array, but I would expect to pass in an associative array with key/value pairs. I suspect that the OpenAPI Generator that builds the PHP docblock is not configured correctly.

Could someone point out the correct native PHP variable type for the setProperties() method?

Can the Hubspot API team review the OpenAPI Generator output and see if there is a way to output the “map” param type as an array type instead? For example:

@param string[] $varname

OR

@param array $varname{

@type boolean $keyname1

@type string $keyname2

}

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [March 23, 2021, 4:19pm UTC](https://community.hubspot.com/t/php-docblock-uses-unfamiliar-property-type-map/34306/2 "2021-03-23T16:19:44Z")

</div>

@danhammari

Did you figure this or should we unleash our php experts here as well 😀

---

<div class="post-metadata">

**Author:** ![danhammari](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/danhammari/32/11850_2.png) [@danhammari](https://community.hubspot.com/u/danhammari)\
**Post date:** [March 24, 2021, 8:18pm UTC](https://community.hubspot.com/t/php-docblock-uses-unfamiliar-property-type-map/34306/3 "2021-03-24T20:18:22Z")

</div>

It looks like the param

map[string,string]

is trying to indicate that I should pass in an associative array where both the keys and values should be variable typed as strings. I will treat both input and outputs with this docblock designation as PHP native associative arrays and watch for any error messages.
