/** * Constructor * @param ... accepts variable arguments 'var1','var2'... variables to set initially * @throws InvalidArgumentException if any constants contain characters other * than [a-zA-Z0-9] */ public function __construct() { parent::__construct(func_get_args()); //..Hash the class name $this->hash = md5(__CLASS__); $this->inC = false; }
public function __construct($set) { parent::__construct($set); $this->keys = array_keys($this->data); foreach( $this->keys as $key ) { if ( array_key_exists( $key, $_GET ) ) { $this->Mutate( $key, $_GET[$key] ); $this->data[$key] = $_GET[$key]; } } }
public function __construct($x, $y, $hash) { parent::__construct($hash); $this->left = $x; $this->right = $y; }
public function __construct($id) { parent::__construct($id); }