PHP Class Jyxo\Input\Validator\Equals

Author: Jaroslav Hanslík
Inheritance: extends AbstractValidator
显示文件 Open project: jyxo/php

Protected Properties

Property Type Description
$expected mixed Expected value.

Public Methods

Method Description
__construct ( mixed $expected ) Constructor.
getExpected ( ) : mixed Returns the expected value.
isValid ( mixed $value ) : boolean Validates a value.
setExpected ( mixed $expected ) : self Sets the expected value.

Method Details

__construct() public method

Constructor.
public __construct ( mixed $expected )
$expected mixed Expected value

getExpected() public method

Returns the expected value.
public getExpected ( ) : mixed
return mixed

isValid() public method

Validates a value.
public isValid ( mixed $value ) : boolean
$value mixed Input value
return boolean

setExpected() public method

Sets the expected value.
public setExpected ( mixed $expected ) : self
$expected mixed Expected value
return self

Property Details

$expected protected_oe property

Expected value.
protected mixed $expected
return mixed