PHP 클래스 Symfony\Component\Form\FormError

저자: Bernhard Schussek ([email protected])
상속: implements Serializable
파일 보기 프로젝트 열기: pmjones/php-framework-benchmarks 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$messageParameters array The parameters that should be substituted in the message template
$messagePluralization integer | null The value for error message pluralization
$messageTemplate string The template for the error message

공개 메소드들

메소드 설명
__construct ( string $messageTemplate, array $messageParameters = [], integer | null $messagePluralization = null ) Constructor
getMessage ( ) : string Returns the error message
getMessageParameters ( ) : array Returns the parameters to be inserted in the message template
getMessagePluralization ( ) : integer | null Returns the value for error message pluralization.
getMessageTemplate ( ) : string Returns the error message template

메소드 상세

__construct() 공개 메소드

Any array key in $messageParameters will be used as a placeholder in $messageTemplate.
또한 보기: Symfony\Component\Translation\Translator
public __construct ( string $messageTemplate, array $messageParameters = [], integer | null $messagePluralization = null )
$messageTemplate string The template for the error message
$messageParameters array The parameters that should be substituted in the message template.
$messagePluralization integer | null The value for error message pluralization

getMessage() 공개 메소드

Returns the error message
public getMessage ( ) : string
리턴 string

getMessageParameters() 공개 메소드

Returns the parameters to be inserted in the message template
public getMessageParameters ( ) : array
리턴 array

getMessagePluralization() 공개 메소드

Returns the value for error message pluralization.
public getMessagePluralization ( ) : integer | null
리턴 integer | null

getMessageTemplate() 공개 메소드

Returns the error message template
public getMessageTemplate ( ) : string
리턴 string

프로퍼티 상세

$messageParameters 보호되어 있는 프로퍼티

The parameters that should be substituted in the message template
protected array $messageParameters
리턴 array

$messagePluralization 보호되어 있는 프로퍼티

The value for error message pluralization
protected int|null $messagePluralization
리턴 integer | null

$messageTemplate 보호되어 있는 프로퍼티

The template for the error message
protected string $messageTemplate
리턴 string