for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Looxis\LaravelAmazonMWS;
class MWSService
{
public function __construct(MWSClient $mwsClient = null)
$this->mwsClient = $mwsClient ?: new MWSClient();
mwsClient
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
class MyClass { } $x = new MyClass(); $x->foo = true;
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:
class MyClass { public $foo; } $x = new MyClass(); $x->foo = true;
}
public function orders()
return new MWSOrders($this->mwsClient);
public function feeds()
return new MWSFeeds($this->mwsClient);
public function merchantFulfillment()
return new MWSMerchantFulfillment($this->mwsClient);
public function setMarketPlaces($countries)
$countries = is_array($countries) ? $countries : func_get_args();
$this->mwsClient->setMarketPlaces($countries);
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: