note 94264 modified in language.oop5.abstract by thiago
| From: | thiago@php.net | Date: | Mon, 26 Oct 2009 13:37:54 +0000 |
| Subject: | note 94264 modified in language.oop5.abstract by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-162099@lists.php.net to get a copy of this message | ||
I discovered that when using the @abstract tag from php-doc my ide
will give the option to implement all abstract methods automaticly.
many developers know this feature from Java ide's like netbeans,intelli-j or eclipse.
regards
example of php-doc @abstract tag ...
<?php
/**
* Abstract class PageController
*
* @see PageController:exec()
* @see PageController::doGET()
* @see PageController::doPost()
*
* @abstract
* @author hofrichter
*/
abstract class MyController {
abstract protected function doGET();
abstract protected function doPOST();
abstract public function exec();
}
?>
--was--
I discovered that when using the @abstract tag from php-doc my ide
will give the option to implement all abstract methods automaticly.
many developers know this feature from Java ide's like netbeans,intelli-j or eclipse.
regards
example of php-doc @abstract tag ...
/**
* Abstract class PageController
*
* @see PageController:exec()
* @see PageController::doGET()
* @see PageController::doPost()
*
* @abstract
* @author hofrichter
*/
abstract class MyController {
abstract protected function doGET();
abstract protected function doPOST();
abstract public function exec();
}
http://php.net/manual/en/language.oop5.abstract.php