Created
February 7, 2021 14:38
-
-
Save szepeviktor/6003fb6e2a35c0e5f9eb29c96623e4b7 to your computer and use it in GitHub Desktop.
Empty String Generator v1.0.0
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
<?php | |
namespace DoNot\Ever\DoThis; | |
final class EmptyStringGenerator | |
{ | |
protected const EMPTY_STRING = ''; | |
protected string $string; | |
public function __construct() | |
{ | |
$this->string = self::EMPTY_STRING; | |
} | |
public function get(): self | |
{ | |
return $this; | |
} | |
public function __toString(): string | |
{ | |
return $this->string; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage