/** * @param string $name * @param string $value * @param array $comments */ public function __construct($name, $value, $comments = array()) { parent::__construct($comments); $this->name = $name; $this->value = $value; }
/** * @param string $dir * @param array $comments */ public function __construct($dir, $comments = array()) { parent::__construct($comments); $this->dir = $dir; }
public function getClass() { if (empty(self::$dones)) { require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'AbstractLayer.php'; } AbstractLayer::$pdo = $this; $class = 'Layer' . strtoupper($this->type); if (isset(self::$dones[$class])) { return $class; } $file = dirname(__FILE__) . DIRECTORY_SEPARATOR . $class . '.php'; if (!file_exists($file)) { self::getException('Layer not implemented : ' . $this->type); } require_once $file; self::$dones[$class] = 1; return $class; }
/** * @param array $sources * @param string $destination * @param array $comments */ public function __construct($sources, $destination, $comments = array()) { parent::__construct($comments); $this->sources = (array) $sources; $this->destination = $destination; }
/** * @param string $command * @param array $args * @param array $comments */ public function __construct($command, $args = array(), $comments = array()) { parent::__construct($comments); $this->command = $command; $this->args = $args; }
/** * @param array $packages * @param array $comments */ public function __construct($packages, $comments = array()) { parent::__construct($comments); $this->packages = $packages; }
/** * @param int|array $ports * @param array $comments */ public function __construct($ports, $comments = array()) { parent::__construct($comments); $this->ports = (array) $ports; }
/** * @param AbstractLayer $layer * @param array $comments */ public function __construct(AbstractLayer $layer, $comments = array()) { parent::__construct($comments); $this->layer = $layer; }
/** * @param string $user * @param array $comments */ public function __construct($user, $comments = array()) { parent::__construct($comments); $this->user = $user; }
/** * @param string|array $commands * @param array $comments */ public function __construct($commands, $comments = array()) { parent::__construct($comments); $this->commands = (array) $commands; }
/** * @param string|array $volumes * @param array $comments */ public function __construct($volumes, $comments = array()) { parent::__construct($comments); $this->volumes = (array) $volumes; }