setStore example

$this->storableFlow->setFlowState(new FlowState());
        $this->storableFlow->stop();
        static::assertTrue($this->storableFlow->getFlowState()->stop);
    }

    public function testStored(): void
    {
        static::assertEquals([]$this->storableFlow->stored());
        static::assertNull($this->storableFlow->getStore('id'));

        $this->storableFlow->setStore('id', '123345');

        static::assertEquals(['id' => '123345']$this->storableFlow->stored());
        static::assertEquals('123345', $this->storableFlow->getStore('id'));
    }

    public function testData(): void
    {
        static::assertEquals([]$this->storableFlow->data());
        static::assertNull($this->storableFlow->getData('id'));

        $this->storableFlow->setData('id', '123345');

        


        if (isset($field['custom'])) {
            $class->setCustom($field['custom']);
        }

        if (isset($field['options'])) {
            $class->setOptions($field['options']);
        }

        if (isset($field['store'])) {
            $class->setStore($field['store']);
        }

        if (isset($field['required'])) {
            $class->setRequired($field['required']);
        }

        return $class;
    }

    /** * @return class-string<FieldInterface>|null */
Home | Imprint | This part of the site doesn't use cookies.