-
-
Notifications
You must be signed in to change notification settings - Fork 8
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 #10 from Intervention/feature/frame-block
Version 4
- Loading branch information
Showing
109 changed files
with
1,417 additions
and
1,723 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
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 @@ | ||
FROM php:8-cli | ||
FROM php:8.1-cli | ||
|
||
RUN apt update \ | ||
&& apt install -y \ | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
} | ||
], | ||
"require": { | ||
"php": "^8.0" | ||
"php": "^8.1" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^9", | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php | ||
|
||
namespace Intervention\Gif\Blocks; | ||
|
||
use Intervention\Gif\AbstractExtension; | ||
|
||
class CommentExtension extends AbstractExtension | ||
{ | ||
public const LABEL = "\xFE"; | ||
|
||
/** | ||
* Comment blocks | ||
* | ||
* @var array | ||
*/ | ||
protected array $comments = []; | ||
|
||
/** | ||
* Get all or one comment | ||
* | ||
* @return mixed | ||
*/ | ||
public function getComments() | ||
{ | ||
return $this->comments; | ||
} | ||
|
||
/** | ||
* Get one comment by key | ||
* | ||
* @param int $key | ||
* @return mixed | ||
*/ | ||
public function getComment(int $key): mixed | ||
{ | ||
return array_key_exists($key, $this->comments) ? $this->comments[$key] : null; | ||
} | ||
|
||
/** | ||
* Set comment text | ||
* | ||
* @param string $value | ||
*/ | ||
public function addComment(string $value): self | ||
{ | ||
$this->comments[] = $value; | ||
|
||
return $this; | ||
} | ||
} |
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.