123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\TestModule5\Service\V1;
- use Magento\TestModule5\Service\V1\Entity\AllSoapAndRestFactory;
- class OverrideService implements OverrideServiceInterface
- {
- /**
- * @var AllSoapAndRestFactory
- */
- protected $factory;
- /**
- * @param AllSoapAndRestFactory $factory
- */
- public function __construct(AllSoapAndRestFactory $factory)
- {
- $this->factory = $factory;
- }
- /**
- * {@inheritdoc}
- */
- public function scalarUpdate($entityId, $name, $hasOrders)
- {
- return $this->factory->create()
- ->setEntityId($entityId)
- ->setName($name)
- ->setHasOrders($hasOrders);
- }
- }
|