public function withIdentity($name, $group = null)
    {
        $this->key = new Key($name, $group);

        return $this;
    }
public function withIdentity($name, $group = null)
    {
        $this->key = new Key($name, $group);

        return $this;
    }
public function withIdentity ( $ name , $ group = null ) { $ this -> key = new Key ( $ name , $ group ) ; return $ this ; }
Use a TriggerKey with the given name and group to
identify the Trigger.

<p>If none of the 'withIdentity' methods are set on the TriggerBuilder,
then a random, unique TriggerKey will be generated.</p>

@param string $name the name element for the Trigger's TriggerKey
@param string $group the group element for the Trigger's TriggerKey

@return TriggerBuilder

@see TriggerKey
@see Trigger#getKey()
Use a TriggerKey with the given name and group to identify the Trigger .