diff --git a/composer.json b/composer.json index 174df53..e738d54 100644 --- a/composer.json +++ b/composer.json @@ -1,14 +1,18 @@ { "name": "lifeformwp/php-pubg", "description": "PUBG API wrapper written in PHP 7.1", - "keywords": ["pubg", "wrapper", "php7"], + "keywords": [ + "pubg", + "wrapper", + "php7" + ], "type": "library", "require": { "guzzlehttp/guzzle": "~6.0", - "php" : ">=7.1.0" + "php": ">=7.1.0" }, "require-dev": { - "phpunit/phpunit" : "^7.0" + "phpunit/phpunit": "^7.0" }, "license": "MIT", "authors": [ @@ -27,5 +31,5 @@ "Lifeformwp\\PHPPUBG\\Tests\\": "tests/" } }, - "version": "1.8.0" + "version": "1.9.0" } \ No newline at end of file diff --git a/composer.lock b/composer.lock index 2ac2e1a..cff8204 100644 --- a/composer.lock +++ b/composer.lock @@ -1,23 +1,23 @@ { "_readme": [ "This file locks the dependencies of your project to a known state", - "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "60138ae400540bef49ff3699b27a303d", + "content-hash": "9a0b2c164afe1d3c944d6a62045ddfc5", "packages": [ { "name": "guzzlehttp/guzzle", - "version": "6.3.2", + "version": "6.3.3", "source": { "type": "git", "url": "https://github.com/guzzle/guzzle.git", - "reference": "68d0ea14d5a3f42a20e87632a5f84931e2709c90" + "reference": "407b0cb880ace85c9b63c5f9551db498cb2d50ba" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/68d0ea14d5a3f42a20e87632a5f84931e2709c90", - "reference": "68d0ea14d5a3f42a20e87632a5f84931e2709c90", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/407b0cb880ace85c9b63c5f9551db498cb2d50ba", + "reference": "407b0cb880ace85c9b63c5f9551db498cb2d50ba", "shasum": "" }, "require": { @@ -27,7 +27,7 @@ }, "require-dev": { "ext-curl": "*", - "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.4", + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.4 || ^7.0", "psr/log": "^1.0" }, "suggest": { @@ -69,7 +69,7 @@ "rest", "web service" ], - "time": "2018-03-26T16:33:04+00:00" + "time": "2018-04-22T15:46:56+00:00" }, { "name": "guzzlehttp/promises", @@ -124,32 +124,33 @@ }, { "name": "guzzlehttp/psr7", - "version": "1.4.2", + "version": "1.5.2", "source": { "type": "git", "url": "https://github.com/guzzle/psr7.git", - "reference": "f5b8a8512e2b58b0071a7280e39f14f72e05d87c" + "reference": "9f83dded91781a01c63574e387eaa769be769115" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/f5b8a8512e2b58b0071a7280e39f14f72e05d87c", - "reference": "f5b8a8512e2b58b0071a7280e39f14f72e05d87c", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/9f83dded91781a01c63574e387eaa769be769115", + "reference": "9f83dded91781a01c63574e387eaa769be769115", "shasum": "" }, "require": { "php": ">=5.4.0", - "psr/http-message": "~1.0" + "psr/http-message": "~1.0", + "ralouphie/getallheaders": "^2.0.5" }, "provide": { "psr/http-message-implementation": "1.0" }, "require-dev": { - "phpunit/phpunit": "~4.0" + "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.8" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.4-dev" + "dev-master": "1.5-dev" } }, "autoload": { @@ -179,13 +180,14 @@ "keywords": [ "http", "message", + "psr-7", "request", "response", "stream", "uri", "url" ], - "time": "2017-03-20T17:10:46+00:00" + "time": "2018-12-04T20:46:45+00:00" }, { "name": "psr/http-message", @@ -236,6 +238,46 @@ "response" ], "time": "2016-08-06T14:39:51+00:00" + }, + { + "name": "ralouphie/getallheaders", + "version": "2.0.5", + "source": { + "type": "git", + "url": "https://github.com/ralouphie/getallheaders.git", + "reference": "5601c8a83fbba7ef674a7369456d12f1e0d0eafa" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/5601c8a83fbba7ef674a7369456d12f1e0d0eafa", + "reference": "5601c8a83fbba7ef674a7369456d12f1e0d0eafa", + "shasum": "" + }, + "require": { + "php": ">=5.3" + }, + "require-dev": { + "phpunit/phpunit": "~3.7.0", + "satooshi/php-coveralls": ">=1.0" + }, + "type": "library", + "autoload": { + "files": [ + "src/getallheaders.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ralph Khattar", + "email": "ralph.khattar@gmail.com" + } + ], + "description": "A polyfill for getallheaders.", + "time": "2016-02-11T07:05:27+00:00" } ], "packages-dev": [ @@ -295,25 +337,28 @@ }, { "name": "myclabs/deep-copy", - "version": "1.7.0", + "version": "1.8.1", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e" + "reference": "3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e", - "reference": "3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8", + "reference": "3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8", "shasum": "" }, "require": { - "php": "^5.6 || ^7.0" + "php": "^7.1" + }, + "replace": { + "myclabs/deep-copy": "self.version" }, "require-dev": { "doctrine/collections": "^1.0", "doctrine/common": "^2.6", - "phpunit/phpunit": "^4.1" + "phpunit/phpunit": "^7.1" }, "type": "library", "autoload": { @@ -336,26 +381,26 @@ "object", "object graph" ], - "time": "2017-10-19T19:58:43+00:00" + "time": "2018-06-11T23:09:50+00:00" }, { "name": "phar-io/manifest", - "version": "1.0.1", + "version": "1.0.3", "source": { "type": "git", "url": "https://github.com/phar-io/manifest.git", - "reference": "2df402786ab5368a0169091f61a7c1e0eb6852d0" + "reference": "7761fcacf03b4d4f16e7ccb606d4879ca431fcf4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phar-io/manifest/zipball/2df402786ab5368a0169091f61a7c1e0eb6852d0", - "reference": "2df402786ab5368a0169091f61a7c1e0eb6852d0", + "url": "https://api.github.com/repos/phar-io/manifest/zipball/7761fcacf03b4d4f16e7ccb606d4879ca431fcf4", + "reference": "7761fcacf03b4d4f16e7ccb606d4879ca431fcf4", "shasum": "" }, "require": { "ext-dom": "*", "ext-phar": "*", - "phar-io/version": "^1.0.1", + "phar-io/version": "^2.0", "php": "^5.6 || ^7.0" }, "type": "library", @@ -391,20 +436,20 @@ } ], "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", - "time": "2017-03-05T18:14:27+00:00" + "time": "2018-07-08T19:23:20+00:00" }, { "name": "phar-io/version", - "version": "1.0.1", + "version": "2.0.1", "source": { "type": "git", "url": "https://github.com/phar-io/version.git", - "reference": "a70c0ced4be299a63d32fa96d9281d03e94041df" + "reference": "45a2ec53a73c70ce41d55cedef9063630abaf1b6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phar-io/version/zipball/a70c0ced4be299a63d32fa96d9281d03e94041df", - "reference": "a70c0ced4be299a63d32fa96d9281d03e94041df", + "url": "https://api.github.com/repos/phar-io/version/zipball/45a2ec53a73c70ce41d55cedef9063630abaf1b6", + "reference": "45a2ec53a73c70ce41d55cedef9063630abaf1b6", "shasum": "" }, "require": { @@ -438,7 +483,7 @@ } ], "description": "Library for handling version information and constraints", - "time": "2017-03-05T17:38:23+00:00" + "time": "2018-07-08T19:19:57+00:00" }, { "name": "phpdocumentor/reflection-common", @@ -594,33 +639,33 @@ }, { "name": "phpspec/prophecy", - "version": "1.7.5", + "version": "1.8.0", "source": { "type": "git", "url": "https://github.com/phpspec/prophecy.git", - "reference": "dfd6be44111a7c41c2e884a336cc4f461b3b2401" + "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/dfd6be44111a7c41c2e884a336cc4f461b3b2401", - "reference": "dfd6be44111a7c41c2e884a336cc4f461b3b2401", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/4ba436b55987b4bf311cb7c6ba82aa528aac0a06", + "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06", "shasum": "" }, "require": { "doctrine/instantiator": "^1.0.2", "php": "^5.3|^7.0", "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0", - "sebastian/comparator": "^1.1|^2.0", + "sebastian/comparator": "^1.1|^2.0|^3.0", "sebastian/recursion-context": "^1.0|^2.0|^3.0" }, "require-dev": { "phpspec/phpspec": "^2.5|^3.2", - "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5" + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.7.x-dev" + "dev-master": "1.8.x-dev" } }, "autoload": { @@ -653,31 +698,31 @@ "spy", "stub" ], - "time": "2018-02-19T10:16:54+00:00" + "time": "2018-08-05T17:53:17+00:00" }, { "name": "phpunit/php-code-coverage", - "version": "6.0.1", + "version": "6.1.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "f8ca4b604baf23dab89d87773c28cc07405189ba" + "reference": "807e6013b00af69b6c5d9ceb4282d0393dbb9d8d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/f8ca4b604baf23dab89d87773c28cc07405189ba", - "reference": "f8ca4b604baf23dab89d87773c28cc07405189ba", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/807e6013b00af69b6c5d9ceb4282d0393dbb9d8d", + "reference": "807e6013b00af69b6c5d9ceb4282d0393dbb9d8d", "shasum": "" }, "require": { "ext-dom": "*", "ext-xmlwriter": "*", "php": "^7.1", - "phpunit/php-file-iterator": "^1.4.2", + "phpunit/php-file-iterator": "^2.0", "phpunit/php-text-template": "^1.2.1", "phpunit/php-token-stream": "^3.0", "sebastian/code-unit-reverse-lookup": "^1.0.1", - "sebastian/environment": "^3.0", + "sebastian/environment": "^3.1 || ^4.0", "sebastian/version": "^2.0.1", "theseer/tokenizer": "^1.1" }, @@ -690,7 +735,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "6.0-dev" + "dev-master": "6.1-dev" } }, "autoload": { @@ -716,29 +761,32 @@ "testing", "xunit" ], - "time": "2018-02-02T07:01:41+00:00" + "time": "2018-10-31T16:06:48+00:00" }, { "name": "phpunit/php-file-iterator", - "version": "1.4.5", + "version": "2.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4" + "reference": "050bedf145a257b1ff02746c31894800e5122946" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4", - "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/050bedf145a257b1ff02746c31894800e5122946", + "reference": "050bedf145a257b1ff02746c31894800e5122946", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": "^7.1" + }, + "require-dev": { + "phpunit/phpunit": "^7.1" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.4.x-dev" + "dev-master": "2.0.x-dev" } }, "autoload": { @@ -753,7 +801,7 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", + "email": "sebastian@phpunit.de", "role": "lead" } ], @@ -763,7 +811,7 @@ "filesystem", "iterator" ], - "time": "2017-11-27T13:52:08+00:00" + "time": "2018-09-13T20:33:42+00:00" }, { "name": "phpunit/php-text-template", @@ -808,16 +856,16 @@ }, { "name": "phpunit/php-timer", - "version": "2.0.0", + "version": "2.1.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "8b8454ea6958c3dee38453d3bd571e023108c91f" + "reference": "8b389aebe1b8b0578430bda0c7c95a829608e059" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/8b8454ea6958c3dee38453d3bd571e023108c91f", - "reference": "8b8454ea6958c3dee38453d3bd571e023108c91f", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/8b389aebe1b8b0578430bda0c7c95a829608e059", + "reference": "8b389aebe1b8b0578430bda0c7c95a829608e059", "shasum": "" }, "require": { @@ -829,7 +877,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-master": "2.1-dev" } }, "autoload": { @@ -853,20 +901,20 @@ "keywords": [ "timer" ], - "time": "2018-02-01T13:07:23+00:00" + "time": "2019-02-20T10:12:59+00:00" }, { "name": "phpunit/php-token-stream", - "version": "3.0.0", + "version": "3.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-token-stream.git", - "reference": "21ad88bbba7c3d93530d93994e0a33cd45f02ace" + "reference": "c99e3be9d3e85f60646f152f9002d46ed7770d18" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/21ad88bbba7c3d93530d93994e0a33cd45f02ace", - "reference": "21ad88bbba7c3d93530d93994e0a33cd45f02ace", + "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/c99e3be9d3e85f60646f152f9002d46ed7770d18", + "reference": "c99e3be9d3e85f60646f152f9002d46ed7770d18", "shasum": "" }, "require": { @@ -902,51 +950,55 @@ "keywords": [ "tokenizer" ], - "time": "2018-02-01T13:16:43+00:00" + "time": "2018-10-30T05:52:18+00:00" }, { "name": "phpunit/phpunit", - "version": "7.0.3", + "version": "7.5.7", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "536f4d853c12d8189963435088e8ff7c0daeab2e" + "reference": "eb343b86753d26de07ecba7868fa983104361948" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/536f4d853c12d8189963435088e8ff7c0daeab2e", - "reference": "536f4d853c12d8189963435088e8ff7c0daeab2e", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/eb343b86753d26de07ecba7868fa983104361948", + "reference": "eb343b86753d26de07ecba7868fa983104361948", "shasum": "" }, "require": { + "doctrine/instantiator": "^1.1", "ext-dom": "*", "ext-json": "*", "ext-libxml": "*", "ext-mbstring": "*", "ext-xml": "*", - "myclabs/deep-copy": "^1.6.1", - "phar-io/manifest": "^1.0.1", - "phar-io/version": "^1.0", + "myclabs/deep-copy": "^1.7", + "phar-io/manifest": "^1.0.2", + "phar-io/version": "^2.0", "php": "^7.1", "phpspec/prophecy": "^1.7", - "phpunit/php-code-coverage": "^6.0.1", - "phpunit/php-file-iterator": "^1.4.3", + "phpunit/php-code-coverage": "^6.0.7", + "phpunit/php-file-iterator": "^2.0.1", "phpunit/php-text-template": "^1.2.1", - "phpunit/php-timer": "^2.0", - "phpunit/phpunit-mock-objects": "^6.0", - "sebastian/comparator": "^2.1", + "phpunit/php-timer": "^2.1", + "sebastian/comparator": "^3.0", "sebastian/diff": "^3.0", - "sebastian/environment": "^3.1", + "sebastian/environment": "^4.0", "sebastian/exporter": "^3.1", "sebastian/global-state": "^2.0", "sebastian/object-enumerator": "^3.0.3", - "sebastian/resource-operations": "^1.0", + "sebastian/resource-operations": "^2.0", "sebastian/version": "^2.0.1" }, + "conflict": { + "phpunit/phpunit-mock-objects": "*" + }, "require-dev": { "ext-pdo": "*" }, "suggest": { + "ext-soap": "*", "ext-xdebug": "*", "phpunit/php-invoker": "^2.0" }, @@ -956,7 +1008,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "7.0-dev" + "dev-master": "7.5-dev" } }, "autoload": { @@ -982,63 +1034,7 @@ "testing", "xunit" ], - "time": "2018-03-26T07:36:48+00:00" - }, - { - "name": "phpunit/phpunit-mock-objects", - "version": "6.0.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git", - "reference": "e3249dedc2d99259ccae6affbc2684eac37c2e53" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/e3249dedc2d99259ccae6affbc2684eac37c2e53", - "reference": "e3249dedc2d99259ccae6affbc2684eac37c2e53", - "shasum": "" - }, - "require": { - "doctrine/instantiator": "^1.0.5", - "php": "^7.1", - "phpunit/php-text-template": "^1.2.1", - "sebastian/exporter": "^3.1" - }, - "require-dev": { - "phpunit/phpunit": "^7.0" - }, - "suggest": { - "ext-soap": "*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "6.0.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Mock Object library for PHPUnit", - "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/", - "keywords": [ - "mock", - "xunit" - ], - "time": "2018-02-15T05:27:38+00:00" + "time": "2019-03-16T07:31:17+00:00" }, { "name": "sebastian/code-unit-reverse-lookup", @@ -1087,30 +1083,30 @@ }, { "name": "sebastian/comparator", - "version": "2.1.3", + "version": "3.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "34369daee48eafb2651bea869b4b15d75ccc35f9" + "reference": "5de4fc177adf9bce8df98d8d141a7559d7ccf6da" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/34369daee48eafb2651bea869b4b15d75ccc35f9", - "reference": "34369daee48eafb2651bea869b4b15d75ccc35f9", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/5de4fc177adf9bce8df98d8d141a7559d7ccf6da", + "reference": "5de4fc177adf9bce8df98d8d141a7559d7ccf6da", "shasum": "" }, "require": { - "php": "^7.0", - "sebastian/diff": "^2.0 || ^3.0", + "php": "^7.1", + "sebastian/diff": "^3.0", "sebastian/exporter": "^3.1" }, "require-dev": { - "phpunit/phpunit": "^6.4" + "phpunit/phpunit": "^7.1" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.1.x-dev" + "dev-master": "3.0-dev" } }, "autoload": { @@ -1147,27 +1143,27 @@ "compare", "equality" ], - "time": "2018-02-01T13:46:46+00:00" + "time": "2018-07-12T15:12:46+00:00" }, { "name": "sebastian/diff", - "version": "3.0.0", + "version": "3.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "e09160918c66281713f1c324c1f4c4c3037ba1e8" + "reference": "720fcc7e9b5cf384ea68d9d930d480907a0c1a29" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/e09160918c66281713f1c324c1f4c4c3037ba1e8", - "reference": "e09160918c66281713f1c324c1f4c4c3037ba1e8", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/720fcc7e9b5cf384ea68d9d930d480907a0c1a29", + "reference": "720fcc7e9b5cf384ea68d9d930d480907a0c1a29", "shasum": "" }, "require": { "php": "^7.1" }, "require-dev": { - "phpunit/phpunit": "^7.0", + "phpunit/phpunit": "^7.5 || ^8.0", "symfony/process": "^2 || ^3.3 || ^4" }, "type": "library", @@ -1203,32 +1199,35 @@ "unidiff", "unified diff" ], - "time": "2018-02-01T13:45:15+00:00" + "time": "2019-02-04T06:01:07+00:00" }, { "name": "sebastian/environment", - "version": "3.1.0", + "version": "4.1.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "cd0871b3975fb7fc44d11314fd1ee20925fce4f5" + "reference": "6fda8ce1974b62b14935adc02a9ed38252eca656" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/cd0871b3975fb7fc44d11314fd1ee20925fce4f5", - "reference": "cd0871b3975fb7fc44d11314fd1ee20925fce4f5", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/6fda8ce1974b62b14935adc02a9ed38252eca656", + "reference": "6fda8ce1974b62b14935adc02a9ed38252eca656", "shasum": "" }, "require": { - "php": "^7.0" + "php": "^7.1" }, "require-dev": { - "phpunit/phpunit": "^6.1" + "phpunit/phpunit": "^7.5" + }, + "suggest": { + "ext-posix": "*" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.1.x-dev" + "dev-master": "4.1-dev" } }, "autoload": { @@ -1253,7 +1252,7 @@ "environment", "hhvm" ], - "time": "2017-07-01T08:51:00+00:00" + "time": "2019-02-01T05:27:49+00:00" }, { "name": "sebastian/exporter", @@ -1520,25 +1519,25 @@ }, { "name": "sebastian/resource-operations", - "version": "1.0.0", + "version": "2.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/resource-operations.git", - "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52" + "reference": "4d7a795d35b889bf80a0cc04e08d77cedfa917a9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/ce990bb21759f94aeafd30209e8cfcdfa8bc3f52", - "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52", + "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/4d7a795d35b889bf80a0cc04e08d77cedfa917a9", + "reference": "4d7a795d35b889bf80a0cc04e08d77cedfa917a9", "shasum": "" }, "require": { - "php": ">=5.6.0" + "php": "^7.1" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "2.0-dev" } }, "autoload": { @@ -1558,7 +1557,7 @@ ], "description": "Provides a list of PHP built-in functions that operate on resources", "homepage": "https://www.github.com/sebastianbergmann/resource-operations", - "time": "2015-07-28T20:34:47+00:00" + "time": "2018-10-04T04:07:39+00:00" }, { "name": "sebastian/version", @@ -1603,6 +1602,64 @@ "homepage": "https://github.com/sebastianbergmann/version", "time": "2016-10-03T07:35:21+00:00" }, + { + "name": "symfony/polyfill-ctype", + "version": "v1.10.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "e3d826245268269cd66f8326bd8bc066687b4a19" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/e3d826245268269cd66f8326bd8bc066687b4a19", + "reference": "e3d826245268269cd66f8326bd8bc066687b4a19", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "suggest": { + "ext-ctype": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.9-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Ctype\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + }, + { + "name": "Gert de Pagter", + "email": "backendtea@gmail.com" + } + ], + "description": "Symfony polyfill for ctype functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "ctype", + "polyfill", + "portable" + ], + "time": "2018-08-06T14:22:27+00:00" + }, { "name": "theseer/tokenizer", "version": "1.1.0", @@ -1645,20 +1702,21 @@ }, { "name": "webmozart/assert", - "version": "1.3.0", + "version": "1.4.0", "source": { "type": "git", "url": "https://github.com/webmozart/assert.git", - "reference": "0df1908962e7a3071564e857d86874dad1ef204a" + "reference": "83e253c8e0be5b0257b881e1827274667c5c17a9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webmozart/assert/zipball/0df1908962e7a3071564e857d86874dad1ef204a", - "reference": "0df1908962e7a3071564e857d86874dad1ef204a", + "url": "https://api.github.com/repos/webmozart/assert/zipball/83e253c8e0be5b0257b881e1827274667c5c17a9", + "reference": "83e253c8e0be5b0257b881e1827274667c5c17a9", "shasum": "" }, "require": { - "php": "^5.3.3 || ^7.0" + "php": "^5.3.3 || ^7.0", + "symfony/polyfill-ctype": "^1.8" }, "require-dev": { "phpunit/phpunit": "^4.6", @@ -1691,7 +1749,7 @@ "check", "validate" ], - "time": "2018-01-29T19:49:41+00:00" + "time": "2018-12-25T11:19:39+00:00" } ], "aliases": [], diff --git a/src/DTO/TelemetryData/Events/LogHeal.php b/src/DTO/TelemetryData/Events/LogHeal.php new file mode 100644 index 0000000..d6ec2e0 --- /dev/null +++ b/src/DTO/TelemetryData/Events/LogHeal.php @@ -0,0 +1,85 @@ + + * @package Lifeformwp\PHPPUBG\DTO\TelemetryData\Events + * @since 1.9.0 + */ +class LogHeal +{ + /** + * @var Character|null + */ + public $character; + /** + * @var Item|null + */ + public $item; + /** + * @var float|null + */ + public $healAmount; + /** + * @var Common|null + */ + public $common; + /** + * @var \DateTimeImmutable|null + */ + public $date; + /** + * @var null|string + */ + public $type; + + /** + * LogHeal constructor. + * + * @param Character|null $character + * @param Item|null $item + * @param float|null $healAmount + * @param Common|null $common + * @param \DateTimeImmutable|null $date + * @param null|string $type + */ + public function __construct( + ?Character $character, + ?Item $item, + ?float $healAmount, + ?Common $common, + ?\DateTimeImmutable $date, + ?string $type + ) { + $this->character = $character; + $this->item = $item; + $this->healAmount = $healAmount; + $this->common = $common; + $this->date = $date; + $this->type = $type; + } + + /** + * @param array $data + * + * @return LogHeal + */ + public static function createFromResponse(array $data): self + { + return new self( + Character::createFromResponse($data['character']), + Item::createFromResponse($data['item']), + $data['healAmount'], + Common::createFromResponse($data['common']), + new \DateTimeImmutable($data['_D']), + $data['_T'] + ); + } +} diff --git a/src/DTO/TelemetryData/Events/LogItemPickupFromCarepackage.php b/src/DTO/TelemetryData/Events/LogItemPickupFromCarepackage.php new file mode 100644 index 0000000..6048270 --- /dev/null +++ b/src/DTO/TelemetryData/Events/LogItemPickupFromCarepackage.php @@ -0,0 +1,77 @@ + + * @package Lifeformwp\PHPPUBG\DTO\TelemetryData\Events + * @since 1.9.0 + */ +class LogItemPickupFromCarepackage +{ + /** + * @var Character|null + */ + public $character; + /** + * @var Item|null + */ + public $item; + /** + * @var Common|null + */ + public $common; + /** + * @var \DateTimeImmutable|null + */ + public $date; + /** + * @var null|string + */ + public $type; + + /** + * LogItemPickupFromCarepackage constructor. + * + * @param Character|null $character + * @param Item|null $item + * @param Common|null $common + * @param \DateTimeImmutable|null $date + * @param null|string $type + */ + public function __construct( + ?Character $character, + ?Item $item, + ?Common $common, + ?\DateTimeImmutable $date, + ?string $type + ) { + $this->character = $character; + $this->item = $item; + $this->common = $common; + $this->date = $date; + $this->type = $type; + } + + /** + * @param array $data + * + * @return LogItemPickupFromCarepackage + */ + public static function createFromResponse(array $data): self + { + return new self( + Character::createFromResponse($data['character']), + Item::createFromResponse($data['item']), + Common::createFromResponse($data['common']), + new \DateTimeImmutable($data['_D']), + $data['_T'] + ); + } +} diff --git a/src/DTO/TelemetryData/Events/LogItemPickupFromLootBox.php b/src/DTO/TelemetryData/Events/LogItemPickupFromLootBox.php new file mode 100644 index 0000000..640ec1c --- /dev/null +++ b/src/DTO/TelemetryData/Events/LogItemPickupFromLootBox.php @@ -0,0 +1,85 @@ + + * @package Lifeformwp\PHPPUBG\DTO\TelemetryData\Events + * @since 1.9.0 + */ +class LogItemPickupFromLootBox +{ + /** + * @var Character|null + */ + public $character; + /** + * @var Item|null + */ + public $item; + /** + * @var int|null + */ + public $ownerTeamId; + /** + * @var Common|null + */ + public $common; + /** + * @var \DateTimeImmutable|null + */ + public $date; + /** + * @var null|string + */ + public $type; + + /** + * LogItemPickupFromLootBox constructor. + * + * @param Character|null $character + * @param Item|null $item + * @param int|null $ownerTeamId + * @param Common|null $common + * @param \DateTimeImmutable|null $date + * @param null|string $type + */ + public function __construct( + ?Character $character, + ?Item $item, + ?int $ownerTeamId, + ?Common $common, + ?\DateTimeImmutable $date, + ?string $type + ) { + $this->character = $character; + $this->item = $item; + $this->ownerTeamId = $ownerTeamId; + $this->common = $common; + $this->date = $date; + $this->type = $type; + } + + /** + * @param array $data + * + * @return LogItemPickupFromLootBox + */ + public static function createFromResponse(array $data): self + { + return new self( + Character::createFromResponse($data['character']), + Item::createFromResponse($data['item']), + $data['ownerTeamId'], + Common::createFromResponse($data['common']), + new \DateTimeImmutable($data['_D']), + $data['_T'] + ); + } +} diff --git a/src/DTO/TelemetryData/Events/LogObjectDestroy.php b/src/DTO/TelemetryData/Events/LogObjectDestroy.php new file mode 100644 index 0000000..709ef13 --- /dev/null +++ b/src/DTO/TelemetryData/Events/LogObjectDestroy.php @@ -0,0 +1,75 @@ + + * @package Lifeformwp\PHPPUBG\DTO\TelemetryData\Events + * @since 1.9.0 + */ +class LogObjectDestroy +{ + /** + * @var Character|null + */ + public $character; + /** + * @var string|null + */ + public $objectType; + /** + * @var Location|null + */ + public $objectLocation; + /** + * @var Common|null + */ + public $common; + /** + * @var \DateTimeImmutable|null + */ + public $date; + /** + * @var null|string + */ + public $type; + + public function __construct( + ?Character $character, + ?string $objectType, + ?Location $objectLocation, + ?Common $common, + ?\DateTimeImmutable $date, + ?string $type + ) { + $this->character = $character; + $this->objectType = $objectType; + $this->objectLocation = $objectLocation; + $this->common = $common; + $this->date = $date; + $this->type = $type; + } + + /** + * @param array|null $data + * + * @return LogObjectDestroy + */ + public static function createFromResponse(?array $data): self + { + return new self( + Character::createFromResponse($data['character']), + $data['objectType'], + Location::createFromResponse($data['objectLocation']), + Common::createFromResponse($data['common']), + new \DateTimeImmutable($data['_D']), + $data['_T'] + ); + } +} diff --git a/src/DTO/TelemetryData/Events/LogParachuteLanding.php b/src/DTO/TelemetryData/Events/LogParachuteLanding.php new file mode 100644 index 0000000..9d3232e --- /dev/null +++ b/src/DTO/TelemetryData/Events/LogParachuteLanding.php @@ -0,0 +1,67 @@ + + * @package Lifeformwp\PHPPUBG\DTO\TelemetryData\Events + * @since 1.9.0 + */ +class LogParachuteLanding +{ + /** + * @var Character|null + */ + public $character; + /** + * @var float|null + */ + public $distance; + /** + * @var Common|null + */ + public $common; + /** + * @var \DateTimeImmutable|null + */ + public $date; + /** + * @var null|string + */ + public $type; + + public function __construct( + ?Character $character, + ?float $distance, + ?Common $common, + ?\DateTimeImmutable $date, + ?string $type + ) { + $this->character = $character; + $this->distance = $distance; + $this->common = $common; + $this->date = $date; + $this->type = $type; + } + + /** + * @param array|null $data + * + * @return LogParachuteLanding + */ + public static function createFromResponse(?array $data): self + { + return new self( + Character::createFromResponse($data['character']), + $data['distance'], + Common::createFromResponse($data['common']), + new \DateTimeImmutable($data['_D']), + $data['_T'] + ); + } +} diff --git a/src/DTO/TelemetryData/Events/LogRedZoneEnded.php b/src/DTO/TelemetryData/Events/LogRedZoneEnded.php new file mode 100644 index 0000000..f63dd71 --- /dev/null +++ b/src/DTO/TelemetryData/Events/LogRedZoneEnded.php @@ -0,0 +1,74 @@ + + * @package Lifeformwp\PHPPUBG\DTO\TelemetryData\Events + * @since 1.9.0 + */ +class LogRedZoneEnded +{ + /** + * @var array|null + */ + public $drivers; + /** + * @var Common|null + */ + public $common; + /** + * @var \DateTimeImmutable|null + */ + public $date; + /** + * @var null|string + */ + public $type; + + /** + * LogRedZoneEnded constructor. + * + * @param array|null $drivers + * @param Common|null $common + * @param \DateTimeImmutable|null $date + * @param null|string $type + */ + public function __construct( + ?array $drivers, + ?Common $common, + ?\DateTimeImmutable $date, + ?string $type + ) { + $this->drivers = $drivers; + $this->common = $common; + $this->date = $date; + $this->type = $type; + } + + /** + * @param array $data + * + * @return LogRedZoneEnded + */ + public static function createFromResponse(array $data): self + { + $drivers = []; + + foreach ($data['drivers'] as $item) { + $drivers[] = Character::createFromResponse($item); + } + + return new self( + $drivers, + Common::createFromResponse($data['common']), + new \DateTimeImmutable($data['_D']), + $data['_T'] + ); + } +} diff --git a/src/DTO/TelemetryData/Events/LogVaultStart.php b/src/DTO/TelemetryData/Events/LogVaultStart.php new file mode 100644 index 0000000..64d4956 --- /dev/null +++ b/src/DTO/TelemetryData/Events/LogVaultStart.php @@ -0,0 +1,60 @@ + + * @package Lifeformwp\PHPPUBG\DTO\TelemetryData\Events + * @since 1.9.0 + */ +class LogVaultStart +{ + /** + * @var Character|null + */ + public $character; + /** + * @var Common|null + */ + public $common; + /** + * @var \DateTimeImmutable|null + */ + public $date; + /** + * @var null|string + */ + public $type; + + public function __construct( + ?Character $character, + ?Common $common, + ?\DateTimeImmutable $date, + ?string $type + ) { + $this->character = $character; + $this->common = $common; + $this->date = $date; + $this->type = $type; + } + + /** + * @param array|null $data + * + * @return LogVaultStart + */ + public static function createFromResponse(?array $data): self + { + return new self( + Character::createFromResponse($data['character']), + Common::createFromResponse($data['common']), + new \DateTimeImmutable($data['_D']), + $data['_T'] + ); + } +} diff --git a/src/DTO/TelemetryData/Events/LogWeaponFireCount.php b/src/DTO/TelemetryData/Events/LogWeaponFireCount.php new file mode 100644 index 0000000..e6a64ca --- /dev/null +++ b/src/DTO/TelemetryData/Events/LogWeaponFireCount.php @@ -0,0 +1,74 @@ + + * @package Lifeformwp\PHPPUBG\DTO\TelemetryData\Events + * @since 1.9.0 + */ +class LogWeaponFireCount +{ + /** + * @var Character|null + */ + public $character; + /** + * @var string|null + */ + public $weaponId; + /** + * @var int|null + */ + public $fireCount; + /** + * @var Common|null + */ + public $common; + /** + * @var \DateTimeImmutable|null + */ + public $date; + /** + * @var null|string + */ + public $type; + + public function __construct( + ?Character $character, + ?string $weaponId, + ?int $fireCount, + ?Common $common, + ?\DateTimeImmutable $date, + ?string $type + ) { + $this->character = $character; + $this->weaponId = $weaponId; + $this->fireCount = $fireCount; + $this->common = $common; + $this->date = $date; + $this->type = $type; + } + + /** + * @param array|null $data + * + * @return LogWeaponFireCount + */ + public static function createFromResponse(?array $data): self + { + return new self( + Character::createFromResponse($data['character']), + $data['weaponId'], + $data['fireCount'], + Common::createFromResponse($data['common']), + new \DateTimeImmutable($data['_D']), + $data['_T'] + ); + } +}