for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace vfalies\tmdb\Traits;
trait ElementTrait
{
protected $data = null;
protected $conf = null;
/**
* Get poster path
*/
public function getPosterPath()
if (isset($this->data->poster_path))
return $this->data->poster_path;
}
return '';
* Get backdrop
public function getBackdropPath()
if (isset($this->data->backdrop_path))
return $this->data->backdrop_path;