src/Sulu/Bundle/MediaBundle/Media/FormatOptions/FormatOptionsManager.php
private function entityToArray(FormatOptions $formatOptions)
    {
        return [
            'cropX' => $formatOptions->getCropX(),
            'cropY' => $formatOptions->getCropY(),
            'cropWidth' => $formatOptions->getCropWidth(),
            'cropHeight' => $formatOptions->getCropHeight(),
        ];
    }
private function entityToArray(FormatOptions $formatOptions)
    {
        return [
            'cropX' => $formatOptions->getCropX(),
            'cropY' => $formatOptions->getCropY(),
            'cropWidth' => $formatOptions->getCropWidth(),
            'cropHeight' => $formatOptions->getCropHeight(),
        ];
    }
private function entityToArray ( FormatOptions $ formatOptions ) { return [ 'cropX' => $ formatOptions -> getCropX ( ) , 'cropY' => $ formatOptions -> getCropY ( ) , 'cropWidth' => $ formatOptions -> getCropWidth ( ) , 'cropHeight' => $ formatOptions -> getCropHeight ( ) , ] ; }
Converts a given entity to its array representation.

@param FormatOptions $formatOptions

@return array
Converts a given entity to its array representation .