public function getFeaturedImage()
    {
        if ($this->featuredImage === null) {
            if ($imgId = get_post_thumbnail_id((int) $this->getId())) {
                $this->featuredImage = $this->postFactory->create(get_post($imgId));
            } else {
                $this->featuredImage = false;
            }
        }

        return $this->featuredImage;
    }
public function getFeaturedImage()
    {
        if ($this->featuredImage === null) {
            if ($imgId = get_post_thumbnail_id((int) $this->getId())) {
                $this->featuredImage = $this->postFactory->create(get_post($imgId));
            } else {
                $this->featuredImage = false;
            }
        }

        return $this->featuredImage;
    }
public function getFeaturedImage ( ) { if ( $ this -> featuredImage === null ) { if ( $ imgId = get_post_thumbnail_id ( ( int ) $ this -> getId ( ) ) ) { $ this -> featuredImage = $ this -> postFactory -> create ( get_post ( $ imgId ) ) ; } else { $ this -> featuredImage = false ; } } return $ this -> featuredImage ; }
Get this Post's featured image.

@return \Tev\Post\Model\Attachment|false Featured image object, or false if not
set
Get this Post s featured image .