/**
* @param PhpMethod $method
* @param StructModel $struct
* @return ClassMap
*/
protected function addStructToClassMapList(PhpMethod $method, StructModel $struct)
{
if ($struct->getIsStruct() && !$struct->getIsRestriction()) {
$method->addChild($method->getIndentedString(sprintf('\'%s\' => \'%s\',', $struct->getName(), $this->getStructName($struct)), 1));
}
return $this;
}