123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <?php
- namespace Facebook\WebDriver;
- class WebDriverDimension
- {
-
- private $height;
-
- private $width;
-
- public function __construct($width, $height)
- {
- $this->width = $width;
- $this->height = $height;
- }
-
- public function getHeight()
- {
- return $this->height;
- }
-
- public function getWidth()
- {
- return $this->width;
- }
-
- public function equals(self $dimension)
- {
- return $this->height === $dimension->getHeight() && $this->width === $dimension->getWidth();
- }
- }
|