namespace WP_CLI\Dispatcher;
-class CompositeCommand extends AbstractCommandContainer implements Documentable {
+class CompositeCommand extends AbstractCommandContainer {
protected $name;
protected $shortdesc;
use \WP_CLI\Utils;
-class RootCommand extends AbstractCommandContainer implements Documentable {
+class RootCommand extends AbstractCommandContainer {
function get_name() {
return 'wp';
namespace WP_CLI\Dispatcher;
-class Subcommand implements Command, Documentable {
+class Subcommand implements Command {
private $parent, $name, $class, $method, $docparser;
$fd = fopen( "php://temp", "rw" );
- if ( $command instanceof Dispatcher\Documentable )
- self::add_initial_markdown( $fd, $command );
+ self::add_initial_markdown( $fd, $command );
fwrite( $fd, file_get_contents( $doc_path ) );
function get_name();
function get_parent();
+
function get_synopsis();
+ function get_shortdesc();
+ function get_full_synopsis();
function get_subcommands();
function pre_invoke( &$args );
}
-
-interface Documentable {
-
- function get_shortdesc();
- function get_full_synopsis();
-}
-