src/ZfcDatagrid/Datagrid.php
public function setTranslator($translator = null)
    {
        if (!$translator instanceof Translator && !$translator instanceof \Zend\I18n\Translator\TranslatorInterface) {
            throw new \InvalidArgumentException('Translator must be an instanceof "Zend\I18n\Translator\Translator" or "Zend\I18n\Translator\TranslatorInterface"');
        }

        $this->translator = $translator;
    }
public function setTranslator($translator = null)
    {
        if (!$translator instanceof Translator && !$translator instanceof \Zend\I18n\Translator\TranslatorInterface) {
            throw new \InvalidArgumentException('Translator must be an instanceof "Zend\I18n\Translator\Translator" or "Zend\I18n\Translator\TranslatorInterface"');
        }

        $this->translator = $translator;
    }
public function setTranslator ( $ translator = null ) { if ( ! $ translator instanceof Translator && ! $ translator instanceof \ Zend \ I18n \ Translator \ TranslatorInterface ) { throw new \ InvalidArgumentException ( 'Translator must be an instanceof "Zend\I18n\Translator\Translator" or "Zend\I18n\Translator\TranslatorInterface"' ) ; } $ this -> translator = $ translator ; }
Set the translator.

@param Translator $translator

@throws \InvalidArgumentException
Set the translator .