Skip to content

Commit

Permalink
changes made to API constants and get instance method is now static f…
Browse files Browse the repository at this point in the history
…or variables
  • Loading branch information
pravesh-a committed Sep 6, 2019
1 parent 8e1e89b commit f5e3548
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/crm/api/handler/VariableAPIHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class VariableAPIHandler extends APIHandler
{
private $variables=null;

public function getInstance()
public static function getInstance()
{
return new VariableAPIHandler();
}
Expand Down
2 changes: 1 addition & 1 deletion src/crm/api/handler/VariableGroupAPIHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class VariableGroupAPIHandler extends APIHandler
{
private $variable_groups=null;

public function getInstance()
public static function getInstance()
{
return new VariableGroupAPIHandler();
}
Expand Down
2 changes: 1 addition & 1 deletion src/crm/crud/ZCRMVariable.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function setDescription($description)
{
$this->description=$description;
}
public function getInstance()
public static function getInstance()
{
return new ZCRMVariable();
}
Expand Down
2 changes: 1 addition & 1 deletion src/crm/crud/ZCRMVariableGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function setDescription($description)
{
$this->description=$description;
}
public function getInstance()
public static function getInstance()
{
return new ZCRMVariableGroup();
}
Expand Down

0 comments on commit f5e3548

Please sign in to comment.