From ea6511e986d9d7fa070444b6deb8270f8b228f13 Mon Sep 17 00:00:00 2001 From: Mateusz Zalewski Date: Mon, 10 Feb 2020 14:27:57 +0100 Subject: [PATCH] [Docs] Recommend trait usage in Plugin Development Guide --- .../implementation.rst | 91 +++---------------- 1 file changed, 14 insertions(+), 77 deletions(-) diff --git a/docs/plugin-development-guide/implementation.rst b/docs/plugin-development-guide/implementation.rst index 95a242fa88d..2146df78688 100644 --- a/docs/plugin-development-guide/implementation.rst +++ b/docs/plugin-development-guide/implementation.rst @@ -16,59 +16,27 @@ take a look at :doc:`customizing models`, :doc:`formshouldHaveType(ProductVariant::class); - } - - function it_implements_product_variant_interface(): void - { - $this->shouldImplement(ProductVariantInterface::class); - } - - function it_can_be_available_on_demand(): void - { - $this->isAvailableOnDemand()->shouldReturn(false); - - $this->setAvailableOnDemand(true); - $this->isAvailableOnDemand()->shouldReturn(true); - } - } - -.. code-block:: php - -