/** * Test case method */ public function testArrayCollectionSet() { $collection = new Enlight_Collection_ArrayCollection(); $collection->setKeyOne('wert123'); $this->assertEquals('wert123', $collection->getKeyOne()); $collection->key_one = 'wert145'; $this->assertEquals('wert145', $collection->key_one); }
/** * The Enlight_Event_EventArgs class constructor expects the name of the event. * * @param $name * @param array|null $args */ public function __construct(array $args = array()) { parent::__construct($args); }
/** * Default set function to set the value to the given property * * @param $key * @param $value */ public function set($key, $value) { if ($this->containsKey($key)) { parent::set($key, $value); } }
/** * The Enlight_Event_EventArgs class constructor expects the name of the event. * * @param $name * @param array|null $args */ public function __construct($name, array $args = null) { $this->_name = $name; parent::__construct($args); }