Exemple #1
0
 public function setNestedAnnotations($annotations)
 {
     foreach ($annotations as $index => $annotation) {
         if ($annotation instanceof Operations) {
             foreach ($annotation->operations as $operation) {
                 $this->operations[] = $operation;
             }
             unset($annotations[$index]);
         }
     }
     return parent::setNestedAnnotations($annotations);
 }
Exemple #2
0
 public function setNestedAnnotations($annotations)
 {
     foreach ($annotations as $index => $annotation) {
         if ($annotation instanceof Properties) {
             foreach ($annotation->properties as $property) {
                 $this->properties[] = $property;
             }
             unset($annotations[$index]);
         }
     }
     return parent::setNestedAnnotations($annotations);
 }
Exemple #3
0
 public function setNestedAnnotations($annotations)
 {
     foreach ($annotations as $index => $annotation) {
         if ($annotation instanceof Parameters) {
             foreach ($annotation->parameters as $parameter) {
                 $this->parameters[] = $parameter;
             }
             unset($annotations[$index]);
         } elseif ($annotation instanceof ResponseMessages) {
             foreach ($annotation->responseMessages as $responseMessage) {
                 $this->responseMessages[] = $responseMessage;
             }
             unset($annotations[$index]);
         }
     }
     return parent::setNestedAnnotations($annotations);
 }