[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Part of the Joomla Framework Console Package 4 * 5 * @copyright Copyright (C) 2005 - 2021 Open Source Matters, Inc. All rights reserved. 6 * @license GNU General Public License version 2 or later; see LICENSE 7 */ 8 9 namespace Joomla\Console\Loader; 10 11 use Joomla\Console\Command\AbstractCommand; 12 use Symfony\Component\Console\Exception\CommandNotFoundException; 13 14 /** 15 * Interface defining a command loader. 16 * 17 * @since 2.0.0 18 */ 19 interface LoaderInterface 20 { 21 /** 22 * Loads a command. 23 * 24 * @param string $name The command to load. 25 * 26 * @return AbstractCommand 27 * 28 * @since 2.0.0 29 * @throws CommandNotFoundException 30 */ 31 public function get(string $name): AbstractCommand; 32 33 /** 34 * Get the names of the registered commands. 35 * 36 * @return string[] 37 * 38 * @since 2.0.0 39 */ 40 public function getNames(): array; 41 42 /** 43 * Checks if a command exists. 44 * 45 * @param string $name The command to check. 46 * 47 * @return boolean 48 * 49 * @since 2.0.0 50 */ 51 public function has($name): bool; 52 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |