PHP Class Essence\Provider\Presenter\Templater

Inheritance: extends Essence\Provider\Presenter
Show file Open project: benjamminf/craft-embedded-assets

Protected Properties

Property Type Description
$_property string Property to update.
$_switch string Property to test.
$_templates array Templates.

Public Methods

Method Description
__construct ( string $property, string $switch, array $templates ) Constructor.
present ( Media $Media ) {@inheritDoc}

Method Details

__construct() public method

Constructor.
public __construct ( string $property, string $switch, array $templates )
$property string Property to update.
$switch string Property to test.
$templates array Mapping.

present() public method

{@inheritDoc}
public present ( Media $Media )
$Media Essence\Media

Property Details

$_property protected property

Property to update.
protected string $_property
return string

$_switch protected property

Property to test.
protected string $_switch
return string

$_templates protected property

Templates.
protected array $_templates
return array