src/Producer.php
public function &scrap(EntityInterface &$instance, $force_delete = false)
    {
        if (!$force_delete && $instance instanceof ScrapInterface) {
            return $instance->scrap();
        } else {
            return $instance->delete();
        }
    }
public function &scrap(EntityInterface &$instance, $force_delete = false)
    {
        if (!$force_delete && $instance instanceof ScrapInterface) {
            return $instance->scrap();
        } else {
            return $instance->delete();
        }
    }
{@inheritdoc}