forked from LiveCarta/PayPal-PHP-SDK
Updated stubs to support namespace
This commit is contained in:
29
tests/PayPal/Test/Common/ArrayClass.php
Normal file
29
tests/PayPal/Test/Common/ArrayClass.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
namespace PayPal\Test\Common;
|
||||
use PayPal\Common\PPModel;
|
||||
class ArrayClass extends PPModel {
|
||||
|
||||
public function setName($name) {
|
||||
$this->name = $name;
|
||||
}
|
||||
public function getName() {
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
public function setDescription($desc) {
|
||||
$this->desc = $desc;
|
||||
}
|
||||
public function getDescription() {
|
||||
return $this->desc;
|
||||
}
|
||||
|
||||
public function setTags($tags) {
|
||||
if(!is_array($tags)) {
|
||||
$tags = array($tags);
|
||||
}
|
||||
$this->tags = $tags;
|
||||
}
|
||||
public function getTags() {
|
||||
return $this->tags;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user