Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
OverrideService.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\TestModule5\Service\V1\Entity\AllSoapAndRestFactory;
10 
12 {
16  protected $factory;
17 
21  public function __construct(AllSoapAndRestFactory $factory)
22  {
23  $this->factory = $factory;
24  }
25 
29  public function scalarUpdate($entityId, $name, $hasOrders)
30  {
31  return $this->factory->create()
32  ->setEntityId($entityId)
33  ->setName($name)
34  ->setHasOrders($hasOrders);
35  }
36 }
scalarUpdate($entityId, $name, $hasOrders)
__construct(AllSoapAndRestFactory $factory)
if(!isset($_GET['name'])) $name
Definition: log.php:14