for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace ReliqArts\DirectTranslator\Vocabulary;
use ReliqArts\DirectTranslator\Vocabulary;
final class Standard implements Vocabulary
{
/**
* @var string
*/
private $name;
private $languageCode;
* @var string[]
private $phrases;
private $words;
* Vocabulary constructor.
*
* @param string $name
* @param array $phrases
* @param array $words
* @param string $languageCode
public function __construct(string $name, array $phrases, array $words, string $languageCode)
$this->name = $name;
$this->languageCode = $languageCode;
$this->phrases = $phrases;
$this->words = $words;
}
* @return string
public function getName(): string
return $this->name;
public function getLanguageCode(): string
return $this->languageCode;
* @return string[]
public function getPhrases(): array
return $this->phrases;
public function getWords(): array
return $this->words;
* {@inheritdoc}
public function jsonSerialize(): array
return (array)$this;