Skip to content

Commit

Permalink
Merge pull request #1 from ecomteck/develop
Browse files Browse the repository at this point in the history
request merge from Develop to Master
  • Loading branch information
ecomteck authored Sep 25, 2019
2 parents bfa718b + 14eaaa2 commit 24ad64c
Show file tree
Hide file tree
Showing 96 changed files with 19,845 additions and 2 deletions.
150 changes: 150 additions & 0 deletions Api/Data/MenuInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
<?php
/**
* Ecomteck
*
* NOTICE OF LICENSE
*
* This source file is subject to the ecomteck.com license that is
* available through the world-wide-web at this URL:
* https://ecomteck.com/LICENSE.txt
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this extension to newer
* version in the future.
*
* @category Ecomteck
* @package Ecomteck_Megamenu
* @copyright Copyright (c) 2019 Ecomteck (https://ecomteck.com/)
* @license https://ecomteck.com/LICENSE.txt
*/

namespace Ecomteck\Megamenu\Api\Data;

/**
* Menu Interface
*/
interface MenuInterface
{
/**
* Constants for field names.
*/
const MENU_ID = 'menu_id';

const TITLE = 'title';

const IDENTIFIER = 'identifier';

const CSS_CLASS = 'css_class';

const CREATION_TIME = 'creation_time';

const UPDATE_TIME = 'update_time';

const IS_ACTIVE = 'is_active';

/**
* Get menu id
*
* @return int
*/
public function getMenuId();

/**
* Set menu id
*
* @param int $menuId
* @return $this
*/
public function setMenuId($menuId);

/**
* Get title
*
* @return string
*/
public function getTitle();

/**
* Set title
*
* @param string $title
* @return $this
*/
public function setTitle($title);

/**
* Get identifier
*
* @return string
*/
public function getIdentifier();

/**
* Set identifier
*
* @param string $identifier
* @return $this
*/
public function setIdentifier($identifier);

/**
* Get css class
*
* @return string
*/
public function getCssClass();

/**
* Set css class
*
* @param string $cssClass
* @return $this
*/
public function setCssClass($cssClass);

/**
* Get creation time
*
* @return string
*/
public function getCreationTime();

/**
* Set creation time
*
* @param string $creationTime format: Y-m-d H:i:s
* @return $this
*/
public function setCreationTime($creationTime);

/**
* Get update time
*
* @return string
*/
public function getUpdateTime();

/**
* Set update time
*
* @param string $updateTime format: Y-m-d H:i:s
* @return $this
*/
public function setUpdateTime($updateTime);

/**
* Get is active
*
* @return int
*/
public function getIsActive();

/**
* Set is active
*
* @param int $isActive
* @return $this
*/
public function setIsActive($isActive);
}
47 changes: 47 additions & 0 deletions Api/Data/MenuSearchResultsInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?php
/**
* Ecomteck
*
* NOTICE OF LICENSE
*
* This source file is subject to the ecomteck.com license that is
* available through the world-wide-web at this URL:
* https://ecomteck.com/LICENSE.txt
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this extension to newer
* version in the future.
*
* @category Ecomteck
* @package Ecomteck_Megamenu
* @copyright Copyright (c) 2019 Ecomteck (https://ecomteck.com/)
* @license https://ecomteck.com/LICENSE.txt
*/

namespace Ecomteck\Megamenu\Api\Data;

use Magento\Framework\Api\SearchResultsInterface;

/**
* Search results interface.
*
* @api
*/
interface MenuSearchResultsInterface extends SearchResultsInterface
{
/**
* Get pages list.
*
* @return \Ecomteck\Megamenu\Api\Data\MenuInterface[]
*/
public function getItems();

/**
* Set pages list.
*
* @param \Ecomteck\Megamenu\Api\Data\MenuInterface[] $items
* @return $this
*/
public function setItems(array $items);
}
Loading

0 comments on commit 24ad64c

Please sign in to comment.