Skip to content

Commit

Permalink
0.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Jul 10, 2017
1 parent fe8c8d3 commit 32591b5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 18 deletions.
23 changes: 7 additions & 16 deletions API/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,20 @@ final class Validator extends \Df\API\Response\Validator {
/**
* 2017-07-06
* @override
* @see \Df\API\Response\Validator::message()
* @used-by \Df\API\Response\Validator::validate()
* @see \Df\API\Exception::long()
* @used-by \Df\API\Client::p()
* @return string
*/
protected function message() {return $this->r()['message'];}
function long() {return df_json_encode($this->r());}

/**
* 2017-07-06
* @override
* @see \Df\API\Response\Validator::rs()
* @used-by \Df\API\Response\Validator::validate()
* @return string
*/
protected function rs() {return df_json_encode($this->r());}

/**
* 2017-07-06
* @override
* @see \Df\API\Response\Validator::title()
* @used-by \Df\API\Response\Validator::validate()
* @see \Df\API\Exception::short()
* @used-by \Df\API\Client::p()
* @return string
*/
protected function title() {return 'Zoho ' . df_zoho_app($this->c()->m())->title();}
function short() {return $this->r()['message'];}

/**
* 2017-07-06
Expand All @@ -52,5 +43,5 @@ protected function title() {return 'Zoho ' . df_zoho_app($this->c()->m())->title
* @used-by \Df\API\Response\Validator::validate()
* @return bool
*/
protected function valid() {return 0 === $this->r()['code'];}
function valid() {return 0 === $this->r()['code'];}
}
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage2pro/zoho-bi"
,"version": "0.0.6"
,"version": "0.0.7"
,"description": "A common library for my «Zoho Books» and «Zoho Inventory» Magento 2 extensions."
,"type": "magento2-module"
,"homepage": "https://mage2.pro/tags/zoho"
Expand All @@ -11,7 +11,7 @@
"homepage": "https://mage2.pro/users/dmitry_fedyuk",
"role": "Developer"
}]
,"require": {"mage2pro/core": ">=2.7.43", "mage2pro/zoho": ">=0.0.7"}
,"require": {"mage2pro/core": ">=2.8.0", "mage2pro/zoho": ">=0.0.7"}
,"autoload": {"files": ["registration.php"], "psr-4": {"Df\\ZohoBI\\": ""}}
,"keywords": [
"Zoho"
Expand Down

0 comments on commit 32591b5

Please sign in to comment.