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