src/Lock.php
protected function convertResourceToObject($resource, $resourceId = null)
    {
        return ! $resource instanceof Resource ? new SimpleResource($resource, $resourceId) : $resource;
    }
protected function convertResourceToObject($resource, $resourceId = null)
    {
        return ! $resource instanceof Resource ? new SimpleResource($resource, $resourceId) : $resource;
    }
protected function convertResourceToObject ( $ resource , $ resourceId = null ) { return ! $ resource instanceof Resource ? new SimpleResource ( $ resource , $ resourceId ) : $ resource ; }
Create a resource value object if a non resource object is passed

@param string|\BeatSwitch\Lock\Resources\Resource|null $resource
@param int|null $resourceId
@return \BeatSwitch\Lock\Resources\Resource
Create a resource value object if a non resource object is passed