gnu-social/plugins/Irc/extlib/phergie/Tests/Phergie/Plugin/Mock.php

62 lines
1.5 KiB
PHP
Raw Normal View History

2010-06-16 09:55:39 +09:00
<?php
/**
* Phergie
*
* PHP version 5
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.
* It is also available through the world-wide-web at this URL:
* http://phergie.org/license
*
* @category Phergie
* @package Phergie_Tests
* @author Phergie Development Team <team@phergie.org>
* @copyright 2008-2010 Phergie Development Team (http://phergie.org)
* @license http://phergie.org/license New BSD License
* @link http://pear.phergie.org/package/Phergie_Tests
*/
/**
* Creates a plugin on the filesystem that can be used by
2010-07-01 01:33:29 +09:00
* Phergie_Plugin_Handler::addPath() to be located and loaded.
2010-06-16 09:55:39 +09:00
*
* @category Phergie
* @package Phergie_Tests
* @author Phergie Development Team <team@phergie.org>
* @license http://phergie.org/license New BSD License
* @link http://pear.phergie.org/package/Phergie_Tests
*/
class Phergie_Plugin_Mock extends Phergie_Plugin_Abstract
{
/**
2010-07-01 01:33:29 +09:00
* Arguments passed to the constructor
*
2010-06-16 09:55:39 +09:00
* @var array
*/
2010-07-01 01:33:29 +09:00
protected $arguments;
2010-06-16 09:55:39 +09:00
/**
2010-07-01 01:33:29 +09:00
* Stores all arguments for later use.
2010-06-16 09:55:39 +09:00
*
2010-07-01 01:33:29 +09:00
* @return void
2010-06-16 09:55:39 +09:00
*/
public function __construct()
{
2010-07-01 01:33:29 +09:00
$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;
2010-06-16 09:55:39 +09:00
}
}