public function getFirstImage()
    {
        $images = $this->getImage();
        if ($images) {
            foreach ($images as $image) {
                return $image;
            }
        }

        return null;
    }
public function getFirstImage()
    {
        $images = $this->getImage();
        if ($images) {
            foreach ($images as $image) {
                return $image;
            }
        }

        return null;
    }
public function getFirstImage ( ) { $ images = $ this -> getImage ( ) ; if ( $ images ) { foreach ( $ images as $ image ) { return $ image ; } } return null ; }
Get first image

@return FileReference|null
Get first image