X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FIrc%2Fextlib%2Fphergie%2FTests%2FPhergie%2FPlugin%2FMock.php;h=44a5d11c7c0597aa2dce9cbde5dbc50701fb9f5f;hb=b716d01a41c54c06676a1e54a48c36e05755a247;hp=714e3d9a44c531af24657cc0c509c9951b5f8b5f;hpb=0b2bbd20aa015f5d9d48c4264f56e13324346b4a;p=quix0rs-gnu-social.git diff --git a/plugins/Irc/extlib/phergie/Tests/Phergie/Plugin/Mock.php b/plugins/Irc/extlib/phergie/Tests/Phergie/Plugin/Mock.php index 714e3d9a44..44a5d11c7c 100755 --- a/plugins/Irc/extlib/phergie/Tests/Phergie/Plugin/Mock.php +++ b/plugins/Irc/extlib/phergie/Tests/Phergie/Plugin/Mock.php @@ -21,7 +21,7 @@ /** * Creates a plugin on the filesystem that can be used by - * Phergie_Plugin_Handler's addPath utility to be located and loaded. + * Phergie_Plugin_Handler::addPath() to be located and loaded. * * @category Phergie * @package Phergie_Tests @@ -32,18 +32,30 @@ class Phergie_Plugin_Mock extends Phergie_Plugin_Abstract { /** - * holds the arguments that were passed in to the constructor + * Arguments passed to the constructor + * * @var array */ - protected $args; + protected $arguments; /** - * processes a variable number of arguments into the args property + * Stores all arguments for later use. * - * @return null + * @return void */ public function __construct() { - $this->args = func_get_args(); + $this->arguments = func_get_args(); + } + + /** + * Returns all constructor arguments. + * + * @return array Enumerated array containing the arguments passed to the + * constructor in order + */ + public function getArguments() + { + return $this->arguments; } }