Skip to content

Commit

Permalink
Fix using trail construct
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyennv committed Jun 13, 2016
1 parent 74d50b5 commit c72a394
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 5 deletions.
14 changes: 13 additions & 1 deletion src/Zimbra/Account/Request/GetPrefs.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,17 @@
*/
class GetPrefs extends Base
{
use PrefsImplTrail;
use PrefsImplTrail {
PrefsImplTrail::__construct as private __prefsConstruct;
}

/**
* Constructor method for GetPrefs
* @param array $prefs
* @return self
*/
public function __construct(array $prefs = [])
{
$this->__prefsConstruct($prefs);
}
}
14 changes: 13 additions & 1 deletion src/Zimbra/Account/Request/ModifyPrefs.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,17 @@
*/
class ModifyPrefs extends Base
{
use PrefsImplTrail;
use PrefsImplTrail {
PrefsImplTrail::__construct as private __prefsConstruct;
}

/**
* Constructor method for GetPrefs
* @param array $prefs
* @return self
*/
public function __construct(array $prefs = [])
{
$this->__prefsConstruct($prefs);
}
}
14 changes: 13 additions & 1 deletion src/Zimbra/Admin/Struct/AdminAttrsImpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,19 @@
*/
abstract class AdminAttrsImpl extends Base
{
use AttrsImplTrait;
use AttrsImplTrait {
AttrsImplTrait::__construct as private __attrsConstruct;
}

/**
* Constructor method for AdminAttrsImpl
* @param array $attrs
* @return self
*/
public function __construct(array $attrs = [])
{
$this->__attrsConstruct($attrs);
}

/**
* Returns the array representation of this class
Expand Down
4 changes: 2 additions & 2 deletions src/Zimbra/Soap/Request/Attr.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
abstract class Attr extends Request
{
use AttrsImplTrait {
AttrsImplTrait::__construct as private __attrConstruct;
AttrsImplTrait::__construct as private __attrsConstruct;
}

/**
Expand All @@ -34,6 +34,6 @@ abstract class Attr extends Request
*/
public function __construct(array $attrs = [])
{
$this->__attrConstruct($attrs);
$this->__attrsConstruct($attrs);
}
}

0 comments on commit c72a394

Please sign in to comment.