code: public function setTenant(?string $tenant)
      {
          if (null !== $tenant) {
              if (!preg_match('/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i', $tenant)) {
                  throw new InvalidArgumentException('Assignee uuid is not valid.');
              }
          }
  
          $this->tenant = $tenant;
  
          return $this;
      }
docs: Set tenant
  
  @param string $tenant
  @return object
  @throws \InvalidArgumentException