Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated slider module #12

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
108 changes: 108 additions & 0 deletions Api/Data/MapInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
<?php
/**
* @category Scandiweb
* @package Scandiweb\Slider\Api\Data
* @author Denis Protassoff <[email protected]>
* @copyright Copyright (c) 2022 Scandiweb, Ltd (http://scandiweb.com)
*/

namespace Scandiweb\Slider\Api\Data;

/**
* Interface MapInterface
*/
interface MapInterface
{
/** Slide ID */
const SLIDE_ID = 'slide_id';

/** Title */
const TITLE = 'title';

/** Coordinates */
const COORDINATES = 'coordinates';

/** Is active flag */
const IS_ACTIVE = 'is_active';

/** Product ID */
const PRODUCT_ID = 'product_id';

/**
* Get map ID
* @return int
*/
public function getId();

/**
* Get slide ID
* @return int
*/
public function getSlideId();

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

/**
* Get coordinates
* @return string
*/
public function getCoordinates();

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

/**
* Get product ID
* @return int
*/
public function getProductId();

/**
* Set map ID
* @param int $id
* @return this
*/
public function setId($id);

/**
* Set slide ID
* @param int $id
* @return this
*/
public function setSlideId($id);

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

/**
* Set coordinates
* @param string $coordinates
* @return this
*/
public function setCoordinates($coordinates);

/**
* Set is active flag
* @param bool $isActive
* @return this
*/
public function setIsActive($isActive);

/**
* Set product ID
* @param int $id
* @return this
*/
public function setProductId($id);
}
28 changes: 28 additions & 0 deletions Api/Data/MapSearchResultsInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php
/**
* @category Scandiweb
* @package Scandiweb\Slider\Api\Data
* @author Denis Protassoff <[email protected]>
* @copyright Copyright (c) 2022 Scandiweb, Ltd (http://scandiweb.com)
*/

namespace Scandiweb\Slider\Api\Data;

use Magento\Framework\Api\SearchResultsInterface;

/**
* Interface MapSearchResultsInterface
*/
interface MapSearchResultsInterface extends SearchResultsInterface
{
/**
* @return \Scandiweb\Slider\Api\Data\MapInterface[]
*/
public function getItems();

/**
* @param \Scandiweb\Slider\Api\Data\MapInterface[] $items
* @return void
*/
public function setItems(array $items);
}
Loading