PHP Class Neos\Media\Domain\Model\Video

Inheritance: extends Asset
Show file Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Property Type Description
$height integer
$width integer

Public Methods

Method Description
__construct ( PersistentResource $resource ) Constructs the object and sets default values for width and height
getHeight ( ) : integer Height of the video in pixels. If the height cannot be determined, -1 is returned.
getWidth ( ) : integer Width of the video in pixels. If the width cannot be determined, -1 is returned.

Method Details

__construct() public method

Constructs the object and sets default values for width and height
public __construct ( PersistentResource $resource )
$resource Neos\Flow\ResourceManagement\PersistentResource

getHeight() public method

Height of the video in pixels. If the height cannot be determined, -1 is returned.
public getHeight ( ) : integer
return integer

getWidth() public method

Width of the video in pixels. If the width cannot be determined, -1 is returned.
public getWidth ( ) : integer
return integer

Property Details

$height protected property

protected int $height
return integer

$width protected property

protected int $width
return integer