public function filterBestVotedImage()
    {
        $currentImage = null;
        $voteAverage  = -1;

        /**
         * @var $image Image
         */
        foreach ($this->data as $image) {
            if ($image->getVoteAverage() > $voteAverage) {
                $voteAverage  = $image->getVoteAverage();
                $currentImage = $image;
            }
        }

        return $currentImage;
    }
public function filterBestVotedImage()
    {
        $currentImage = null;
        $voteAverage  = -1;

        /**
         * @var $image Image
         */
        foreach ($this->data as $image) {
            if ($image->getVoteAverage() > $voteAverage) {
                $voteAverage  = $image->getVoteAverage();
                $currentImage = $image;
            }
        }

        return $currentImage;
    }
public function filterBestVotedImage ( ) { $ currentImage = null ; $ voteAverage = - 1 ; /**
         * @var $image Image
         */ foreach ( $ this -> data as $ image ) { if ( $ image -> getVoteAverage ( ) > $ voteAverage ) { $ voteAverage = $ image -> getVoteAverage ( ) ; $ currentImage = $ image ; } } return $ currentImage ; }
Return a single image that is rated highest

@return ImageFilter|null
Return a single image that is rated highest