original_string: public function tenant(Website $website = null): ?Website
      {
          if ($website !== null) {
              $this->app->instance(Tenant::class, $website);
  
              $this->emitEvent(new Events\Websites\Switched($website));
  
              return $website;
          }
  
          return $this->app->make(Tenant::class);
      }
code: public function tenant(Website $website = null): ?Website
      {
          if ($website !== null) {
              $this->app->instance(Tenant::class, $website);
  
              $this->emitEvent(new Events\Websites\Switched($website));
  
              return $website;
          }
  
          return $this->app->make(Tenant::class);
      }
code_tokens: public function tenant ( Website $ website = null ) : ? Website { if ( $ website !== null ) { $ this -> app -> instance ( Tenant :: class , $ website ) ; $ this -> emitEvent ( new Events \ Websites \ Switched ( $ website ) ) ; return $ website ; } return $ this -> app -> make ( Tenant :: class ) ; }
docstring: Get or set current tenant.
  
  @param Website|null $website
  @return Tenant|null
docstring_tokens: Get or set current tenant .