Skip to content

Instantly share code, notes, and snippets.

@nfabre
Created December 15, 2010 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nfabre/742227 to your computer and use it in GitHub Desktop.
Save nfabre/742227 to your computer and use it in GitHub Desktop.
VmwareUserCreate.php
<?php
// ...
class VmwareUserCreateTask extends Task {
// ...
private $vmconnex = array();
public function createVmconnex() {
$num = array_push($this->vmconnex, new Connexion());
return $this->vmconnex[$num-1];
}
public function addVmconnex(Connexion $vmconnex) {
$num = array_push($this->vmconnex,$vmconnex);
return $this->vmconnex[$num-1];
}
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment