-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
232 additions
and
359 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
.idea | ||
/bin/ | ||
/build/ | ||
/vendor/ | ||
/composer.lock | ||
/.php-cs-fixer.cache | ||
/.phpunit.result.cache | ||
/.phpunit.cache/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
Scraper Colissimo | ||
================= | ||
|
||
![Packagist version](https://flat.badgen.net/packagist/v/rem42/scraper-colissimo) | ||
![Packagist download](https://flat.badgen.net/packagist/dt/rem42/scraper-colissimo) | ||
![Packagist name](https://flat.badgen.net/packagist/name/rem42/scraper-colissimo) | ||
![Packagist php version](https://flat.badgen.net/packagist/php/rem42/scraper-colissimo) | ||
![Github licence](https://flat.badgen.net/github/license/rem42/scraper-colissimo) | ||
![Depenabot](https://flat.badgen.net/github/dependabot/rem42/scraper-colissimo) | ||
![Codeclimate lines of code](https://flat.badgen.net/codeclimate/loc/rem42/scraper-colissimo) | ||
![Codeclimate maintainability](https://flat.badgen.net/codeclimate/maintainability/rem42/scraper-colissimo) | ||
|
||
Scraper can handle multiple request type and transform them into object in order to create some API. | ||
|
||
Installation | ||
------------ | ||
|
||
````bash | ||
composer require rem42/scraper-colissimo | ||
```` | ||
|
||
Requirement | ||
----------- | ||
|
||
- PHP >= 8.1 | ||
|
||
Usage | ||
----- | ||
|
||
TODO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd" | ||
bootstrap="vendor/autoload.php" | ||
cacheResultFile=".phpunit.cache/test-results" | ||
executionOrder="depends,defects" | ||
forceCoversAnnotation="false" | ||
beStrictAboutCoversAnnotation="true" | ||
beStrictAboutOutputDuringTests="true" | ||
beStrictAboutTodoAnnotatedTests="true" | ||
convertDeprecationsToExceptions="true" | ||
failOnRisky="true" | ||
failOnWarning="true" | ||
verbose="true"> | ||
<testsuites> | ||
<testsuite name="default"> | ||
<directory>tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
|
||
<coverage cacheDirectory=".phpunit.cache/code-coverage" | ||
processUncoveredFiles="true"> | ||
<include> | ||
<directory suffix=".php">src</directory> | ||
</include> | ||
</coverage> | ||
</phpunit> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?php | ||
<?php declare(strict_types=1); | ||
|
||
namespace Scraper\ScraperColissimo\Api; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,10 @@ | ||
<?php | ||
<?php declare(strict_types=1); | ||
|
||
namespace Scraper\ScraperColissimo\Entity; | ||
|
||
final class ColissimoGenerateLabel | ||
{ | ||
private Response $response; | ||
private ?string $file = null; | ||
private ?string $cn23 = null; | ||
|
||
public function getResponse(): Response | ||
{ | ||
return $this->response; | ||
} | ||
|
||
public function setResponse(Response $response): self | ||
{ | ||
$this->response = $response; | ||
|
||
return $this; | ||
} | ||
|
||
public function getFile(): ?string | ||
{ | ||
return $this->file; | ||
} | ||
|
||
public function setFile(?string $file = null): self | ||
{ | ||
$this->file = $file; | ||
|
||
return $this; | ||
} | ||
|
||
public function getCn23(): ?string | ||
{ | ||
return $this->cn23; | ||
} | ||
|
||
public function setCn23(?string $cn23 = null): self | ||
{ | ||
$this->cn23 = $cn23; | ||
|
||
return $this; | ||
} | ||
public Response $response; | ||
public ?string $file = null; | ||
public ?string $cn23 = null; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.