cvs: pear /Services_Webservice/Webservice Definition.php /Services_Webservice/Webservice/Definition Exception.php

From: Date: Thu, 28 Jul 2005 18:40:21 +0000
Subject: cvs: pear /Services_Webservice/Webservice Definition.php /Services_Webservice/Webservice/Definition Exception.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-33442@lists.php.net to get a copy of this message
jausions Thu Jul 28 14:40:21 2005 EDT Modified files: /pear/Services_Webservice/Webservice Definition.php /pear/Services_Webservice/Webservice/Definition Exception.php Log: Updated exceptions http://cvs.php.net/diff.php/pear/Services_Webservice/Webservice/Definition.php?r1=1.7&r2=1.8&ty=u Index: pear/Services_Webservice/Webservice/Definition.php diff -u pear/Services_Webservice/Webservice/Definition.php:1.7 pear/Services_Webservice/Webservice/Definition.php:1.8 --- pear/Services_Webservice/Webservice/Definition.php:1.7 Thu Jul 28 14:30:15 2005 +++ pear/Services_Webservice/Webservice/Definition.php Thu Jul 28 14:40:20 2005 @@ -19,7 +19,7 @@ * @author Philippe Jausions <Philippe.Jausions@11abacus.com> * @copyright 2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Definition.php,v 1.7 2005/07/28 18:30:15 jausions Exp $ + * @version CVS: $Id: Definition.php,v 1.8 2005/07/28 18:40:20 jausions Exp $ * @link http://pear.php.net/package/Services_Webservice */ @@ -293,6 +293,7 @@ * * @access protected * @throws Services_Webservice_Definition_NoDocCommentException + * @throws Services_Webservice_Definition_IncompleteDocCommentException */ protected function classMethodsIntoStruct() { @@ -307,7 +308,7 @@ $docComments = $method->getDocComment(); if (!trim($docComments)) { - throw new Services_Webservice_Definition_NoDocCommentException('Method ' . $this->_classname . '::' . $methodName . ' is missing docblock comment.'); + throw new Services_Webservice_Definition_NoDocCommentException('Method ' . $this->_classname . '::' . $methodName . '() is missing docblock comment.'); } // Skip method? @@ -329,7 +330,7 @@ preg_match_all('~@param\s(\S+)~', $docComments, $param); $params = $method->getParameters(); if (count(%params) != count($param)) { - + throw new Services_Webservice_Definition_IncompleteDocCommentException('Docblock comment don\'t match ' . $this->_classname . '::' . $methodName . '() signature.'); } for ($i = 0; $i < count($params); ++$i) { $_class = $params[$i]->getClass(); http://cvs.php.net/diff.php/pear/Services_Webservice/Webservice/Definition/Exception.php?r1=1.3&r2=1.4&ty=u Index: pear/Services_Webservice/Webservice/Definition/Exception.php diff -u pear/Services_Webservice/Webservice/Definition/Exception.php:1.3 pear/Services_Webservice/Webservice/Definition/Exception.php:1.4 --- pear/Services_Webservice/Webservice/Definition/Exception.php:1.3 Thu Jul 28 10:59:16 2005 +++ pear/Services_Webservice/Webservice/Definition/Exception.php Thu Jul 28 14:40:21 2005 @@ -18,7 +18,7 @@ * @author Philippe Jausions <Philippe.Jausions@11abacus.com> * @copyright 2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Exception.php,v 1.3 2005/07/28 14:59:16 jausions Exp $ + * @version CVS: $Id: Exception.php,v 1.4 2005/07/28 18:40:21 jausions Exp $ * @link http://pear.php.net/package/Services_Webservice */ @@ -55,4 +55,11 @@ { } +/** + * Exception class for Incomplete docblock comment + */ +class Services_Webservice_Definition_IncompleteDocCommentException extends Services_Webservice_Definition_Exception +{ +} + ?> \ No newline at end of file

« previous php.pear.cvs (#33442) next »