public function setCreationOptions(array $options=null)
    {
        if (!isset($options['user']) || !$options['user'] instanceof UserInterface) {
            throw new \InvalidArgumentException('An user interface is required!');
        }

        if (!isset($options['token']) || !is_string($options['token'])) {
            $options['token'] = false;
        }

        if (!isset($options['template']) || !is_string($options['template'])) {
            $options['template'] = 'organizations/mail/invite-employee';
        }

        $this->options = $options;
    }
public function setCreationOptions(array $options=null)
    {
        if (!isset($options['user']) || !$options['user'] instanceof UserInterface) {
            throw new \InvalidArgumentException('An user interface is required!');
        }

        if (!isset($options['token']) || !is_string($options['token'])) {
            $options['token'] = false;
        }

        if (!isset($options['template']) || !is_string($options['template'])) {
            $options['template'] = 'organizations/mail/invite-employee';
        }

        $this->options = $options;
    }
public function setCreationOptions ( array $ options = null ) { if ( ! isset ( $ options [ 'user' ] ) || ! $ options [ 'user' ] instanceof UserInterface ) { throw new \ InvalidArgumentException ( 'An user interface is required!' ) ; } if ( ! isset ( $ options [ 'token' ] ) || ! is_string ( $ options [ 'token' ] ) ) { $ options [ 'token' ] = false ; } if ( ! isset ( $ options [ 'template' ] ) || ! is_string ( $ options [ 'template' ] ) ) { $ options [ 'template' ] = 'organizations/mail/invite-employee' ; } $ this -> options = $ options ; }
Sets creation options.

@param array $options

@return void
@throws \InvalidArgumentException
Sets creation options .