PHP Class FFMpeg\FFProbe\DataMapping\AbstractData

Inheritance: implements Countable
Datei anzeigen Open project: php-ffmpeg/php-ffmpeg

Public Methods

Method Description
__construct ( array $properties )
all ( ) : array Returns all properties and their values.
count ( )
get ( string $property, mixed $default = null ) : mixed Returns the property value given its name.
has ( string $property ) : boolean Returns true if data has property.
keys ( ) : array Returns all property names.
set ( string $property, mixed $value ) : AbstractData Sets the property value given its name.

Method Details

__construct() public method

public __construct ( array $properties )
$properties array

all() public method

Returns all properties and their values.
public all ( ) : array
return array

count() public method

public count ( )

get() public method

Returns the property value given its name.
public get ( string $property, mixed $default = null ) : mixed
$property string
$default mixed
return mixed

has() public method

Returns true if data has property.
public has ( string $property ) : boolean
$property string
return boolean

keys() public method

Returns all property names.
public keys ( ) : array
return array

set() public method

Sets the property value given its name.
public set ( string $property, mixed $value ) : AbstractData
$property string
$value mixed
return AbstractData