Skip to content

Commit 7d11d34

Browse files
committed
update file
1 parent fb0363e commit 7d11d34

File tree

2 files changed

+18
-38
lines changed

2 files changed

+18
-38
lines changed

Api/TagRepositoryInterface.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,30 +20,24 @@
2020
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
* SOFTWARE.
2222
*/
23-
2423
namespace Lof\ProductTags\Api;
25-
2624
use Magento\Framework\Api\SearchCriteriaInterface;
27-
2825
interface TagRepositoryInterface
2926
{
30-
3127
/**
3228
* Save Tag
3329
* @param \Lof\ProductTags\Api\Data\TagInterface $tag
3430
* @return \Lof\ProductTags\Api\Data\TagInterface
3531
* @throws \Magento\Framework\Exception\LocalizedException
3632
*/
3733
public function save(\Lof\ProductTags\Api\Data\TagInterface $tag);
38-
3934
/**
4035
* Retrieve Tag
4136
* @param string $tagId
4237
* @return \Lof\ProductTags\Api\Data\TagInterface
4338
* @throws \Magento\Framework\Exception\LocalizedException
4439
*/
4540
public function getById($tagId);
46-
4741
/**
4842
* Retrieve Tag matching the specified criteria.
4943
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
@@ -53,15 +47,13 @@ public function getById($tagId);
5347
public function getList(
5448
\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
5549
);
56-
5750
/**
5851
* Delete Tag
5952
* @param bool $tagId
6053
* @return bool true on success
6154
* @throws \Magento\Framework\Exception\LocalizedException
6255
*/
6356
public function delete($tagId);
64-
6557
/**
6658
* Delete Tag by ID
6759
* @param string $tagId
@@ -70,4 +62,4 @@ public function delete($tagId);
7062
* @throws \Magento\Framework\Exception\LocalizedException
7163
*/
7264
public function deleteById($tagId);
73-
}
65+
}

Model/Data/Tag.php

Lines changed: 17 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,29 @@
11
<?php
22
/**
3-
* Landofcoder
3+
* Copyright (c) 2019 Landofcoder
44
*
5-
* NOTICE OF LICENSE
5+
* Permission is hereby granted, free of charge, to any person obtaining a copy
6+
* of this software and associated documentation files (the "Software"), to deal
7+
* in the Software without restriction, including without limitation the rights
8+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
* copies of the Software, and to permit persons to whom the Software is
10+
* furnished to do so, subject to the following conditions:
611
*
7-
* This source file is subject to the Landofcoder.com license that is
8-
* available through the world-wide-web at this URL:
9-
* http://landofcoder.com/license
12+
* The above copyright notice and this permission notice shall be included in all
13+
* copies or substantial portions of the Software.
1014
*
11-
* DISCLAIMER
12-
*
13-
* Do not edit or add to this file if you wish to upgrade this extension to newer
14-
* version in the future.
15-
*
16-
* @category Landofcoder
17-
* @package Lof_ProductTags
18-
* @copyright Copyright (c) 2019 Landofcoder (http://www.landofcoder.com/)
19-
* @license http://www.landofcoder.com/LICENSE-1.0.html
15+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
* SOFTWARE.
2022
*/
21-
2223
namespace Lof\ProductTags\Model\Data;
23-
2424
use Lof\ProductTags\Api\Data\TagInterface;
25-
2625
class Tag extends \Magento\Framework\Api\AbstractExtensibleObject implements TagInterface
2726
{
28-
2927
/**
3028
* Get tag_id
3129
* @return string|null
@@ -34,7 +32,6 @@ public function getTagId()
3432
{
3533
return $this->_get(self::TAG_ID);
3634
}
37-
3835
/**
3936
* Set tag_id
4037
* @param string $tagId
@@ -44,7 +41,6 @@ public function setTagId($tagId)
4441
{
4542
return $this->setData(self::TAG_ID, $tagId);
4643
}
47-
4844
/**
4945
* Get tag_title
5046
* @return string|null
@@ -53,7 +49,6 @@ public function getTagTitle()
5349
{
5450
return $this->_get(self::TAG_TITLE);
5551
}
56-
5752
/**
5853
* Set tag_title
5954
* @param string $tagTitle
@@ -63,7 +58,6 @@ public function setTagTitle($tagTitle)
6358
{
6459
return $this->setData(self::TAG_TITLE, $tagTitle);
6560
}
66-
6761
/**
6862
* Set status
6963
*
@@ -81,7 +75,6 @@ public function getStatus(){
8175
public function setStatus($status){
8276
return $this->setData(self::TAG_STATUS, $status);
8377
}
84-
8578
/**
8679
* Set identifier
8780
*
@@ -99,7 +92,6 @@ public function getIdentifier(){
9992
public function setIdentifier($identifier){
10093
return $this->setData(self::TAG_IDENTIFIER, $identifier);
10194
}
102-
10395
/**
10496
* Set tag_description
10597
*
@@ -117,7 +109,6 @@ public function getTagDescription(){
117109
public function setTagDescription($tagDescription){
118110
return $this->setData(self::TAG_DESCRIPTION, $tagDescription);
119111
}
120-
121112
/**
122113
* Set StoreId
123114
*
@@ -135,7 +126,6 @@ public function getStoreId(){
135126
public function setStoreId($storeId){
136127
return $this->setData("store_id", $storeId);
137128
}
138-
139129
/**
140130
* Set products
141131
*
@@ -153,6 +143,4 @@ public function getProducts(){
153143
public function setProducts($products){
154144
return $this->setData("products", $products);
155145
}
156-
157-
158-
}
146+
}

0 commit comments

Comments
 (0)