<commit_before><?php

namespace CultuurNet\UDB3\Offer;

use CultuurNet\UDB3\Label;

trait OfferEditingServiceDecoratorTrait
{
    /**
     * @return OfferEditingServiceInterface
     */
    abstract protected function getDecoratedEditingService();

    /**
     * @param $id
     * @param Label $label
     */
    public function addLabel($id, Label $label)
    {
        return $this->getDecoratedEditingService()
            ->addLabel($id, $label);
    }

    /**
     * @param $id
     * @param Label $label
     */
    public function deleteLabel($id, Label $label)
    {
        return $this->getDecoratedEditingService()
            ->deleteLabel($id, $label);
    }
}<commit_msg>III-657: add missing translation methods to OfferEditingServiceDecoratorTrait<commit_after><?php

namespace CultuurNet\UDB3\Offer;

use CultuurNet\UDB3\Label;
use CultuurNet\UDB3\Language;
use ValueObjects\String\String as VOString;

trait OfferEditingServiceDecoratorTrait
{
    /**
     * @return OfferEditingServiceInterface
     */
    abstract protected function getDecoratedEditingService();

    /**
     * @param $id
     * @param Label $label
     */
    public function addLabel($id, Label $label)
    {
        return $this->getDecoratedEditingService()
            ->addLabel($id, $label);
    }

    /**
     * @param $id
     * @param Label $label
     */
    public function deleteLabel($id, Label $label)
    {
        return $this->getDecoratedEditingService()
            ->deleteLabel($id, $label);
    }

    /**
     * @param $id
     * @param Language $language
     * @param VOString $title
     */
    public function translateTitle($id, Language $language, VOString $title)
    {
        return $this->getDecoratedEditingService()
            ->translateTitle($id, $language, $title);
    }

    /**
     * @param $id
     * @param Language $language
     * @param VOString $description
     */
    public function translateDescription($id, Language $language, VOString $description)
    {
        return $this->getDecoratedEditingService()
            ->translateDescription($id, $language, $description);
    }
}
{'fraction_non_alphanumeric': 0.11947318908748825, 'fraction_numerical': 0.0037629350893697085, 'mean_word_length': 2.6296928327645053, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1077745', 'n_tokens_mistral': 651, 'n_tokens_neox': 635, 'n_words': 134}