]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - plugins/Irc/extlib/phergie/Tests/Phergie/Plugin/Mock.php
44a5d11c7c0597aa2dce9cbde5dbc50701fb9f5f
[quix0rs-gnu-social.git] / plugins / Irc / extlib / phergie / Tests / Phergie / Plugin / Mock.php
1 <?php
2 /**
3  * Phergie
4  *
5  * PHP version 5
6  *
7  * LICENSE
8  *
9  * This source file is subject to the new BSD license that is bundled
10  * with this package in the file LICENSE.
11  * It is also available through the world-wide-web at this URL:
12  * http://phergie.org/license
13  *
14  * @category  Phergie
15  * @package   Phergie_Tests
16  * @author    Phergie Development Team <team@phergie.org>
17  * @copyright 2008-2010 Phergie Development Team (http://phergie.org)
18  * @license   http://phergie.org/license New BSD License
19  * @link      http://pear.phergie.org/package/Phergie_Tests
20  */
21
22 /**
23  * Creates a plugin on the filesystem that can be used by
24  * Phergie_Plugin_Handler::addPath() to be located and loaded.
25  *
26  * @category Phergie
27  * @package  Phergie_Tests
28  * @author   Phergie Development Team <team@phergie.org>
29  * @license  http://phergie.org/license New BSD License
30  * @link     http://pear.phergie.org/package/Phergie_Tests
31  */
32 class Phergie_Plugin_Mock extends Phergie_Plugin_Abstract
33 {
34     /**
35      * Arguments passed to the constructor
36      *
37      * @var array
38      */
39     protected $arguments;
40
41     /**
42      * Stores all arguments for later use.
43      *
44      * @return void
45      */
46     public function __construct()
47     {
48         $this->arguments = func_get_args();
49     }
50
51     /**
52      * Returns all constructor arguments.
53      *
54      * @return array Enumerated array containing the arguments passed to the
55      *         constructor in order
56      */
57     public function getArguments()
58     {
59         return $this->arguments;
60     }
61 }