for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare( strict_types = 1 );
namespace WMDE\Fundraising\Frontend\ApplicationContext\Infrastructure;
/**
* Encapsulates a list of honorifics for the current locale.
*
* @license GNU GPL v2+
* @author Gabriel Birke < [email protected] >
*/
class Honorifics {
private $honorifics;
* @param string[] $honorifics name => display name pairs
public function __construct( array $honorifics ) {
$this->honorifics = $honorifics;
}
* @return string[]
public function getList(): array {
return $this->honorifics;
public function getKeys(): array {
return array_keys( $this->honorifics );