src/Routing/Route.php
public function getResource()
    {
        $resource = $this->parameter(ResourceRegistrar::PARAM_RESOURCE_ID);

        return is_object($resource) ? $resource : null;
    }
public function getResource()
    {
        $resource = $this->parameter(ResourceRegistrar::PARAM_RESOURCE_ID);

        return is_object($resource) ? $resource : null;
    }
Get the domain object binding for the route.

@return mixed|null