src/DoctrineStaticMeta.php
public function getPlural(): string
    {
        try {
            if (null === $this->plural) {
                $singular     = $this->getSingular();
                $this->plural = Inflector::pluralize($singular);
            }

            return $this->plural;
        } catch (\Exception $e) {
            throw new DoctrineStaticMetaException(
                'Exception in ' . __METHOD__ . ': ' . $e->getMessage(),
                $e->getCode(),
                $e
            );
        }
    }
public function getPlural(): string
    {
        try {
            if (null === $this->plural) {
                $singular     = $this->getSingular();
                $this->plural = Inflector::pluralize($singular);
            }

            return $this->plural;
        } catch (\Exception $e) {
            throw new DoctrineStaticMetaException(
                'Exception in ' . __METHOD__ . ': ' . $e->getMessage(),
                $e->getCode(),
                $e
            );
        }
    }
public function getPlural ( ) : string { try { if ( null === $ this -> plural ) { $ singular = $ this -> getSingular ( ) ; $ this -> plural = Inflector :: pluralize ( $ singular ) ; } return $ this -> plural ; } catch ( \ Exception $ e ) { throw new DoctrineStaticMetaException ( 'Exception in ' . __METHOD__ . ': ' . $ e -> getMessage ( ) , $ e -> getCode ( ) , $ e ) ; } }
Get the property name the Entity is mapped by when plural

Override it in your entity class if you are using an Entity class name that doesn't pluralize nicely

@return string
@throws DoctrineStaticMetaException
@SuppressWarnings(PHPMD.StaticAccess)
Get the property name the Entity is mapped by when plural