1<?php
2
3namespace Facebook\WebDriver;
4
5use Facebook\WebDriver\Interactions\Touch\WebDriverTouchAction;
6use Facebook\WebDriver\Interactions\Touch\WebDriverTouchScreen;
7
8class WebDriverUpAction extends WebDriverTouchAction implements WebDriverAction
9{
10    private $x;
11    private $y;
12
13    /**
14     * @param WebDriverTouchScreen $touch_screen
15     * @param int $x
16     * @param int $y
17     */
18    public function __construct(WebDriverTouchScreen $touch_screen, $x, $y)
19    {
20        $this->x = $x;
21        $this->y = $y;
22        parent::__construct($touch_screen);
23    }
24
25    public function perform()
26    {
27        $this->touchScreen->up($this->x, $this->y);
28    }
29}
30