addAccessor() public method

The dev needs to define a procedural function like so: function foo_bar($cage_object, $arg2, $arg3, $arg4, $arg5...) { ... }
Author: Ed Finkler
public addAccessor ( string $accessor_name ) : void
$accessor_name string
return void
Esempio n. 1
0
 /**
  *
  */
 public function testAddAccessor()
 {
     //pre-condition, clean start
     $this->assertSame($this->cage->user_accessors, array());
     $this->cage->addAccessor('method_name');
     $this->assertSame($this->cage->user_accessors, array('method_name'));
 }