public function setRecipient($user)
    {
        if (!is_string($this->otherGuidAttribute) || empty($this->otherGuidAttribute)) {
            throw new \yii\base\InvalidConfigException('Recipient GUID Attribute Not Specified.');
        }
        if ($user instanceof BaseUserModel) {
            $user = $user->getGUID();
        }
        $otherGuidAttribute = $this->otherGuidAttribute;
        return $this->$otherGuidAttribute = $user;
    }
public function setRecipient($user)
    {
        if (!is_string($this->otherGuidAttribute) || empty($this->otherGuidAttribute)) {
            throw new \yii\base\InvalidConfigException('Recipient GUID Attribute Not Specified.');
        }
        if ($user instanceof BaseUserModel) {
            $user = $user->getGUID();
        }
        $otherGuidAttribute = $this->otherGuidAttribute;
        return $this->$otherGuidAttribute = $user;
    }
public function setRecipient ( $ user ) { if ( ! is_string ( $ this -> otherGuidAttribute ) || empty ( $ this -> otherGuidAttribute ) ) { throw new \ yii \ base \ InvalidConfigException ( 'Recipient GUID Attribute Not Specified.' ) ; } if ( $ user instanceof BaseUserModel ) { $ user = $ user -> getGUID ( ) ; } $ otherGuidAttribute = $ this -> otherGuidAttribute ; return $ this -> $ otherGuidAttribute = $ user ; }
Set recipient.
@param BaseUserModel $user
@return string
Set recipient .