init
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
namespace Magento\TestModuleMSC\Api;
|
||||
|
||||
interface AllSoapAndRestInterface
|
||||
{
|
||||
/**
|
||||
* @param int $itemId
|
||||
* @return \Magento\TestModuleMSC\Api\Data\ItemInterface
|
||||
*/
|
||||
public function item($itemId);
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
* @return \Magento\TestModuleMSC\Api\Data\ItemInterface
|
||||
*/
|
||||
public function create($name);
|
||||
|
||||
/**
|
||||
* @param \Magento\TestModuleMSC\Api\Data\ItemInterface $entityItem
|
||||
* @return \Magento\TestModuleMSC\Api\Data\ItemInterface
|
||||
*/
|
||||
public function update(\Magento\TestModuleMSC\Api\Data\ItemInterface $entityItem);
|
||||
|
||||
/**
|
||||
* @return \Magento\TestModuleMSC\Api\Data\ItemInterface[]
|
||||
*/
|
||||
public function items();
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
* @return \Magento\TestModuleMSC\Api\Data\ItemInterface
|
||||
*/
|
||||
public function testOptionalParam($name = null);
|
||||
|
||||
/**
|
||||
* @param \Magento\TestModuleMSC\Api\Data\ItemInterface $entityItem
|
||||
* @return \Magento\TestModuleMSC\Api\Data\ItemInterface
|
||||
*/
|
||||
public function itemAnyType(\Magento\TestModuleMSC\Api\Data\ItemInterface $entityItem);
|
||||
|
||||
/**
|
||||
* @return \Magento\TestModuleMSC\Api\Data\ItemInterface
|
||||
*/
|
||||
public function getPreconfiguredItem();
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
namespace Magento\TestModuleMSC\Api\Data;
|
||||
|
||||
interface CustomAttributeDataObjectInterface extends \Magento\Framework\Api\ExtensibleDataInterface
|
||||
{
|
||||
const NAME = 'name';
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName();
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
* @return $this
|
||||
*/
|
||||
public function setName($name);
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
namespace Magento\TestModuleMSC\Api\Data;
|
||||
|
||||
interface CustomAttributeNestedDataObjectInterface extends \Magento\Framework\Api\ExtensibleDataInterface
|
||||
{
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName();
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
* @return $this
|
||||
*/
|
||||
public function setName($name);
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
namespace Magento\TestModuleMSC\Api\Data;
|
||||
|
||||
interface ItemInterface extends \Magento\Framework\Api\ExtensibleDataInterface
|
||||
{
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getItemId();
|
||||
|
||||
/**
|
||||
* @param int $itemId
|
||||
* @return $this
|
||||
*/
|
||||
public function setItemId($itemId);
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName();
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
* @return $this
|
||||
*/
|
||||
public function setName($name);
|
||||
}
|
||||
Reference in New Issue
Block a user