1<?php
2
3namespace Facebook\WebDriver\Remote;
4
5class RemoteExecuteMethod implements ExecuteMethod
6{
7    /**
8     * @var RemoteWebDriver
9     */
10    private $driver;
11
12    /**
13     * @param RemoteWebDriver $driver
14     */
15    public function __construct(RemoteWebDriver $driver)
16    {
17        $this->driver = $driver;
18    }
19
20    /**
21     * @param string $command_name
22     * @param array $parameters
23     * @return mixed
24     */
25    public function execute($command_name, array $parameters = [])
26    {
27        return $this->driver->execute($command_name, $parameters);
28    }
29}
30