Some checks failed
abc-api/abcParser/pipeline/head There was a failure building this commit
25 lines
424 B
PHP
25 lines
424 B
PHP
<?php
|
|
|
|
namespace Enzyme\Axiom\Atoms;
|
|
|
|
use Enzyme\Axiom\Exceptions\AtomException;
|
|
|
|
class StringAtom implements AtomInterface
|
|
{
|
|
protected $value;
|
|
|
|
public function __construct($value)
|
|
{
|
|
if (is_string($value) === false) {
|
|
throw new AtomException(get_class($this), $value);
|
|
}
|
|
|
|
$this->value = $value;
|
|
}
|
|
|
|
public function getValue()
|
|
{
|
|
return $this->value;
|
|
}
|
|
}
|