public function mask($pattern, $placeholder = null, $name = null, $value = null) 
	{
		Argument::i()
			->test(1, 'string')
			->test(2, 'string', 'null')
			->test(3, 'string', 'null')
			->test(4, 'scalar', 'null');
			
		$field = Mask::i()->setPattern($pattern);
		
		if(!is_null($name)) {
			$field->setName($name);
		}
		
		if(!is_null($placeholder)){
			$field->setHolder($placeholder);
		}
		
		if(!is_null($value)) {
			$field->setValue($value);
		}
		
		return $field;
	}
public function mask($pattern, $placeholder = null, $name = null, $value = null) 
	{
		Argument::i()
			->test(1, 'string')
			->test(2, 'string', 'null')
			->test(3, 'string', 'null')
			->test(4, 'scalar', 'null');
			
		$field = Mask::i()->setPattern($pattern);
		
		if(!is_null($name)) {
			$field->setName($name);
		}
		
		if(!is_null($placeholder)){
			$field->setHolder($placeholder);
		}
		
		if(!is_null($value)) {
			$field->setValue($value);
		}
		
		return $field;
	}
public function mask ( $ pattern , $ placeholder = null , $ name = null , $ value = null ) { Argument :: i ( ) -> test ( 1 , 'string' ) -> test ( 2 , 'string' , 'null' ) -> test ( 3 , 'string' , 'null' ) -> test ( 4 , 'scalar' , 'null' ) ; $ field = Mask :: i ( ) -> setPattern ( $ pattern ) ; if ( ! is_null ( $ name ) ) { $ field -> setName ( $ name ) ; } if ( ! is_null ( $ placeholder ) ) { $ field -> setHolder ( $ placeholder ) ; } if ( ! is_null ( $ value ) ) { $ field -> setValue ( $ value ) ; } return $ field ; }
Returns an input mask

@param string
@param string|null
@param string|null
@param scalar|null
@return Eden\Block\Field\Mask
Returns an input mask