示例#1
0
 /**
  * @see \WsdlToPhp\PackageGenerator\File\AbstractModelFile::setModel()
  * @throws \InvalidaArgumentException
  * @param AbstractModel $model
  * @return StructArray
  */
 public function setModel(AbstractModel $model)
 {
     if ($model instanceof StructModel && !$model->isArray()) {
         throw new \InvalidArgumentException('The model is not a valid array struct (name must contain Array and the model must contain only one property', __LINE__);
     }
     return parent::setModel($model);
 }