Console_Application
[ class tree: Console_Application ] [ index: Console_Application ] [ all elements ]

Source for file MissingParameter.php

Documentation is available at MissingParameter.php

  1. <?php
  2. /**
  3.  * Console Library
  4.  *
  5.  * LICENSE
  6.  *
  7.  * "THE BEER-WARE LICENSE" (Revision 42):
  8.  * "Sven Strittmatter" <ausserirdisch@sven-space.de> wrote this file.
  9.  * As long as you retain this notice you can do whatever you want with
  10.  * this stuff. If we meet some day, and you think this stuff is worth it,
  11.  * you can buy me a beer in return.
  12.  *
  13.  * $Author: sxs $
  14.  * $Revision: 161 $
  15.  * 
  16.  * @category    Console
  17.  * @package     Console_Application
  18.  * @copyright   Copyright (c) 2009 Sven Strittmatter
  19.  */
  20.  
  21. /**
  22.  * Console_Exception.
  23.  *
  24.  * @see Console_Exception
  25.  */
  26. require_once('Console/Exception.php');
  27.  
  28. /**
  29.  * Class for running a Console_Application_Abstract-Script.
  30.  *
  31.  * @final
  32.  * @category   Console
  33.  * @package    Console_Exception
  34.  * @uses       Console_Exception
  35.  * @copyright  Copyright (c) 2009 Sven Strittmatter
  36.  */
  37.     public function __construct($parameterName$code 0{
  38.         parent::__construct($parameterName$code);
  39.     }
  40.  
  41.     public function getName({
  42.         return $this->getMessage();
  43.     }
  44.  
  45.     public function __toString({
  46.         return 'You omitted the required parameter ' $this->getName('.';
  47.     }
  48. }

Documentation generated on Mon, 17 Aug 2009 15:52:51 +0200 by phpDocumentor 1.4.2