![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/php-webdriver/webdriver/lib/Remote/ |
<?php namespace Facebook\WebDriver\Remote; class WebDriverCommand { /** @var string|null */ protected $sessionID; /** @var string */ protected $name; /** @var array */ protected $parameters; /** * @param string $session_id * @param string $name Constant from DriverCommand * @param array $parameters * @todo In 2.0 force parameters to be an array, then remove is_array() checks in HttpCommandExecutor * @todo In 2.0 make constructor private. Use by default static `::create()` with sessionID type string. */ public function __construct($session_id, $name, $parameters) { $this->sessionID = $session_id; $this->name = $name; $this->parameters = $parameters; } /** * @return self */ public static function newSession(array $parameters) { // TODO: In 2.0 call empty constructor and assign properties directly. return new self(null, DriverCommand::NEW_SESSION, $parameters); } /** * @return string */ public function getName() { return $this->name; } /** * @return string|null Could be null for newSession command */ public function getSessionID() { return $this->sessionID; } /** * @return array */ public function getParameters() { return $this->parameters; } }