added type hinting to MementoResource.php