<commit_before><?php

namespace Remorhaz\JSONPointer\Pointer\Evaluate;

class ReferenceWriteProperty extends ReferenceWrite
{


    protected function createAdvancer()
    {
        return AdvancerProperty::factory();
    }

    protected function doesExist()
    {
        throw new LogicException("Deprecated method");
    }


    protected function performExisting()
    {
        throw new LogicException("Deprecated method");
    }


    protected function performNonExisting()
    {
        if (!$this->canPerformNonExisting()) {
            $propertyDescription = $this
                ->getAdvancer()
                ->getValueDescription();
            throw new EvaluateException(
                "Cannot write to non-existing property '{$propertyDescription}' if it is not last"
            );
        }
        $this
            ->getAdvancer()
            ->write($this->getValue());
        $result = null;
        return $this->setResult($result);<commit_msg>Deprecated methods removed<commit_after><?php

namespace Remorhaz\JSONPointer\Pointer\Evaluate;

class ReferenceWriteProperty extends ReferenceWrite
{


    protected function createAdvancer()
    {
        return AdvancerProperty::factory();
    }

    protected function performNonExisting()
    {
        if (!$this->canPerformNonExisting()) {
            $propertyDescription = $this
                ->getAdvancer()
                ->getValueDescription();
            throw new EvaluateException(
                "Cannot write to non-existing property '{$propertyDescription}' if it is not last"
            );
        }
        $this
            ->getAdvancer()
            ->write($this->getValue());
        $result = null;
        return $this->setResult($result);
{'fraction_non_alphanumeric': 0.10188895248998282, 'fraction_numerical': 0.0, 'mean_word_length': 2.1839708561020035, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '6712270', 'n_tokens_mistral': 430, 'n_tokens_neox': 418, 'n_words': 101}