scratch – Blame information for rev 120
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
120 | office | 1 | <?php |
2 | |||
3 | /* |
||
4 | * This file is part of PHP-FFmpeg. |
||
5 | * |
||
6 | * (c) Alchemy <info@alchemy.fr> |
||
7 | * |
||
8 | * For the full copyright and license information, please view the LICENSE |
||
9 | * file that was distributed with this source code. |
||
10 | */ |
||
11 | |||
12 | namespace FFMpeg\Coordinate; |
||
13 | |||
14 | use FFMpeg\Exception\InvalidArgumentException; |
||
15 | |||
16 | class FrameRate |
||
17 | { |
||
18 | private $value; |
||
19 | |||
20 | public function __construct($value) |
||
21 | { |
||
22 | if ($value <= 0) { |
||
23 | throw new InvalidArgumentException('Invalid frame rate, must be positive value.'); |
||
24 | } |
||
25 | |||
26 | $this->value = $value; |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @return float |
||
31 | */ |
||
32 | public function getValue() |
||
33 | { |
||
34 | return $this->value; |
||
35 | } |
||
36 | } |