-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from 2amigos/develop
Develop/master
- Loading branch information
Showing
25 changed files
with
922 additions
and
100 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 |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<?php | ||
|
||
namespace Da\QrCode\Contracts; | ||
|
||
use BaconQrCode\Renderer\Color\Alpha; | ||
use BaconQrCode\Renderer\Color\ColorInterface; | ||
use BaconQrCode\Renderer\Color\Rgb; | ||
use BaconQrCode\Renderer\RendererStyle\Fill; | ||
use BaconQrCode\Renderer\RendererStyle\Gradient; | ||
use BaconQrCode\Renderer\RendererStyle\GradientType; | ||
|
||
interface ColorsInterface | ||
{ | ||
public const GRADIENT_VERTICAL = 'vertical'; | ||
public const GRADIENT_HORIZONTAL = 'horizontal'; | ||
public const GRADIENT_RADIAL = 'radial'; | ||
public const GRADIENT_DIAGONAL = 'diagonal'; | ||
public const GRADIENT_INVERSE_DIAGONAL = 'diagonal_inverse'; | ||
|
||
/** | ||
* @param Alpha|Rgb|Gradient $color | ||
* @return void | ||
*/ | ||
public function setForegroundColor($color): void; | ||
|
||
/** | ||
* @return Rgb|Alpha|Gradient | ||
*/ | ||
public function getForegroundColor(); | ||
|
||
/** | ||
* @param $color | ||
* @return void | ||
*/ | ||
public function setForegroundEndColor($color): void; | ||
|
||
/** | ||
* @return mixed | ||
*/ | ||
public function getForegroundEndColor(); | ||
|
||
/** | ||
* @param Alpha|Rgb $color | ||
* @return void | ||
*/ | ||
public function setBackgroundColor($color): void; | ||
|
||
/** | ||
* @return void | ||
*/ | ||
public function unsetForegroundEndColor(): void; | ||
|
||
/** | ||
* @return Rgb|Alpha | ||
*/ | ||
public function getBackgroundColor(); | ||
|
||
/** | ||
* @param string $type | ||
* @return void | ||
*/ | ||
public function setGradientType(string $type): void; | ||
|
||
/** | ||
* @return GradientType | ||
*/ | ||
public function getGradientTye(); | ||
|
||
/** | ||
* @return Fill | ||
*/ | ||
public function buildFillColor(); | ||
|
||
/** | ||
* @return void | ||
*/ | ||
public function forceUniformRgbColors(): void; | ||
} |
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,45 @@ | ||
<?php | ||
|
||
namespace Da\QrCode\Contracts; | ||
|
||
use BaconQrCode\Renderer\Eye\EyeInterface; | ||
use BaconQrCode\Renderer\Module\ModuleInterface; | ||
|
||
interface PathStyleInterface | ||
{ | ||
public const DOTS = 'dots'; | ||
public const SQUARE = 'square'; | ||
public const ROUNDED = 'rounded'; | ||
|
||
/** | ||
* @param string $pathStyle | ||
* @return void | ||
*/ | ||
public function setPathStyle(string $pathStyle): void; | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getPathStyle(): string; | ||
|
||
/** | ||
* @param int $ratio | ||
* @return void | ||
*/ | ||
public function setIntensity(float $intensity): void; | ||
|
||
/** | ||
* @return float | ||
*/ | ||
public function getIntensity(): float; | ||
|
||
/** | ||
* @return ModuleInterface | ||
*/ | ||
public function buildModule(); | ||
|
||
/** | ||
* @return EyeInterface | ||
*/ | ||
public function buildEye(); | ||
} |
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.