public function thumbnail($size = null)
    {
        $size = ($size) ? $size : $this->config->get('images.size');

        if ($id = $this->thumbnailId) {
            return new Image($id, $size);
        }
    }
public function thumbnail($size = null)
    {
        $size = ($size) ? $size : $this->config->get('images.size');

        if ($id = $this->thumbnailId) {
            return new Image($id, $size);
        }
    }
public function thumbnail ( $ size = null ) { $ size = ( $ size ) ? $ size : $ this -> config -> get ( 'images.size' ) ; if ( $ id = $ this -> thumbnailId ) { return new Image ( $ id , $ size ) ; } }
Get post thumbnail.

@return \Assely\Thumbails\Image|null
Get post thumbnail .