-
Notifications
You must be signed in to change notification settings - Fork 32
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
1 parent
7f7445c
commit 69e188a
Showing
22 changed files
with
495 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
## 2.4 | ||
|
||
* Optimized memory usage. | ||
|
||
## 2.3 | ||
|
||
* Support specify custom keyring details for Electronic Signature. | ||
|
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,95 @@ | ||
<?php | ||
|
||
namespace EbicsApi\Ebics\Contracts; | ||
|
||
/** | ||
* Buffer class interface. | ||
* | ||
* @license http://www.opensource.org/licenses/mit-license.html MIT License | ||
* @author Andrew Svirin | ||
*/ | ||
interface BufferInterface | ||
{ | ||
const DEFAULT_READ_LENGTH = 1024; | ||
|
||
/** | ||
* Open buffer. | ||
* | ||
* @param string $mode | ||
* | ||
* @return void | ||
*/ | ||
public function open(string $mode): void; | ||
|
||
/** | ||
* Close buffer. | ||
* | ||
* @return void | ||
*/ | ||
public function close(): void; | ||
|
||
/** | ||
* Reset pointer. | ||
* | ||
* @return void | ||
*/ | ||
public function rewind(): void; | ||
|
||
/** | ||
* Write to buffer. | ||
* | ||
* @param string $string | ||
* | ||
* @return void | ||
*/ | ||
public function write(string $string): void; | ||
|
||
/** | ||
* Read from buffer. | ||
* | ||
* @param int|null $length | ||
* | ||
* @return string | ||
*/ | ||
public function read(?int $length = null): string; | ||
|
||
/** | ||
* Read from buffer full content. | ||
* | ||
* @return string | ||
*/ | ||
public function readContent(): string; | ||
|
||
/** | ||
* Is end of file. | ||
* | ||
* @return bool | ||
*/ | ||
public function eof(): bool; | ||
|
||
/** | ||
* Move to pointer. | ||
* | ||
* @param int $offset | ||
* | ||
* @return int | ||
*/ | ||
public function fseek(int $offset): int; | ||
|
||
/** | ||
* Apply filter. | ||
* | ||
* @param string $filterName | ||
* @param int $mode | ||
* | ||
* @return void | ||
*/ | ||
public function filterAppend(string $filterName, int $mode): void; | ||
|
||
/** | ||
* Length of content. | ||
* | ||
* @return int | ||
*/ | ||
public function length(): int; | ||
} |
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
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
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
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.