getIsRestriction() public method

Returns the isRestriction value
public getIsRestriction ( ) : boolean
return boolean
Esempio n. 1
0
 /**
  * @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;
 }