code: public function getResource()
      {
          $resource = $this->parameter(ResourceRegistrar::PARAM_RESOURCE_ID);
  
          return is_object($resource) ? $resource : null;
      }
docs: Get the domain object binding for the route.
  
  @return mixed|null