18 lines
286 B
PHP
18 lines
286 B
PHP
<?php
|
|
|
|
class MediaYoutube implements MediaRendererInterface{
|
|
private $modelRef;
|
|
|
|
public function __construct(MediaModel $model){
|
|
$this->modelRef = $model;
|
|
}
|
|
|
|
public function asText(){
|
|
return $this->modelRef->link;
|
|
}
|
|
|
|
public function render(){
|
|
echo $this->asText();
|
|
}
|
|
}
|
|
?>
|