Skip to content

Commit 17e79b3

Browse files
committed
Add item description parameter
1 parent 9284e7d commit 17e79b3

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/Omnipay/Common/Item.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,17 @@ public function setName($value)
7474
/**
7575
* {@inheritDoc}
7676
*/
77-
public function getSku()
77+
public function getDescription()
7878
{
79-
return $this->getParameter('sku');
79+
return $this->getParameter('description');
8080
}
8181

8282
/**
83-
* Set the item SKU
83+
* Set the item description
8484
*/
85-
public function setSku($value)
85+
public function setDescription($value)
8686
{
87-
return $this->setParameter('sku', $value);
87+
return $this->setParameter('description', $value);
8888
}
8989

9090
/**

src/Omnipay/Common/ItemInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ interface ItemInterface
1313
public function getName();
1414

1515
/**
16-
* SKU of the item
16+
* Description of the item
1717
*/
18-
public function getSku();
18+
public function getDescription();
1919

2020
/**
2121
* Quantity of the item

tests/Omnipay/Common/ItemTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ public function testName()
3535
$this->assertSame('CD-ROM', $this->item->getName());
3636
}
3737

38-
public function testSku()
38+
public function testDescription()
3939
{
40-
$this->item->setSku('CD');
41-
$this->assertSame('CD', $this->item->getSku());
40+
$this->item->setDescription('CD');
41+
$this->assertSame('CD', $this->item->getDescription());
4242
}
4343

4444
public function testQuantity()

0 commit comments

Comments
 (0)