private static function checkIphone(Device $device, UserAgent $userAgent)
    {
        if (stripos($userAgent->getUserAgentString(), 'iphone;') !== false) {
            $device->setName(Device::IPHONE);
            return true;
        }

        return false;
    }
private static function checkIphone(Device $device, UserAgent $userAgent)
    {
        if (stripos($userAgent->getUserAgentString(), 'iphone;') !== false) {
            $device->setName(Device::IPHONE);
            return true;
        }

        return false;
    }
private static function checkIphone ( Device $ device , UserAgent $ userAgent ) { if ( stripos ( $ userAgent -> getUserAgentString ( ) , 'iphone;' ) !== false ) { $ device -> setName ( Device :: IPHONE ) ; return true ; } return false ; }
Determine if the device is iPhone.

@param Device $device
@param UserAgent $userAgent
@return bool
Determine if the device is iPhone .