Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /* * This file is part of PHP-FFmpeg. * * (c) Alchemy <[email protected]> * * Fo..
Decoded Output download
<?php
/*
* This file is part of PHP-FFmpeg.
*
* (c) Alchemy <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FFMpeg\Coordinate;
use FFMpeg\Exception\InvalidArgumentException;
/**
* Dimension object, used for manipulating width and height couples.
*/
class Dimension
{
private $width;
private $height;
/**
* @param int $width
* @param int $height
*
* @throws InvalidArgumentException when one of the parameteres is invalid
*/
public function __construct($width, $height)
{
if ($width <= 0 || $height <= 0) {
throw new InvalidArgumentException('Width and height should be positive integer');
}
$this->width = (int) $width;
$this->height = (int) $height;
}
/**
* Returns width.
*
* @return int
*/
public function getWidth()
{
return $this->width;
}
/**
* Returns height.
*
* @return int
*/
public function getHeight()
{
return $this->height;
}
/**
* Returns the ratio.
*
* @param bool $forceStandards Whether or not force the use of standards ratios;
*
* @return AspectRatio
*/
public function getRatio($forceStandards = true)
{
return AspectRatio::create($this, $forceStandards);
}
}
?>
Did this file decode correctly?
Original Code
<?php
/*
* This file is part of PHP-FFmpeg.
*
* (c) Alchemy <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FFMpeg\Coordinate;
use FFMpeg\Exception\InvalidArgumentException;
/**
* Dimension object, used for manipulating width and height couples.
*/
class Dimension
{
private $width;
private $height;
/**
* @param int $width
* @param int $height
*
* @throws InvalidArgumentException when one of the parameteres is invalid
*/
public function __construct($width, $height)
{
if ($width <= 0 || $height <= 0) {
throw new InvalidArgumentException('Width and height should be positive integer');
}
$this->width = (int) $width;
$this->height = (int) $height;
}
/**
* Returns width.
*
* @return int
*/
public function getWidth()
{
return $this->width;
}
/**
* Returns height.
*
* @return int
*/
public function getHeight()
{
return $this->height;
}
/**
* Returns the ratio.
*
* @param bool $forceStandards Whether or not force the use of standards ratios;
*
* @return AspectRatio
*/
public function getRatio($forceStandards = true)
{
return AspectRatio::create($this, $forceStandards);
}
}
Function Calls
None |
Stats
MD5 | 00cf1701cc3e9d316e598b687b008aac |
Eval Count | 0 |
Decode Time | 107 ms |