Class EndsWith
Diese Klasse implementiert eine Regel, die prüft, ob der übergebene Wert mit dem festgelegten Wert endet und in diesem Fall true zurück gibt.
// Ergibt true echo (new Alvine\Util\Constraint\EndsWith('lo'))->isValid('hallo'); // Ergibt false echo (new Alvine\Util\Constraint\EndsWith('mun'))->isValid('hallo');
Das StartsWith prüft den Wert und gibt true zurück, wenn der übergebene Wert mit der Zeichenkette beginnt.
- Alvine\Core\Alvine implements Serializable uses Alvine\Core\SerializableImplementation
- Alvine\Util\Constraint
- Alvine\Util\Constraint\StringType
- Alvine\Util\Constraint\EndsWith
Direct known subclasses
Alvine\Util\Constraint\NotEndsWith
Namespace: Alvine\Util\Constraint
Package: Alvine\Util\Constraint
Category: Framework
License: Licence
Author: schukai GmbH info@schukai.de
Version: Release: $Revision: 173 $
Since: 20110904
Link: Alvine
Located at util/constraint/EndsWith.class.php
Package: Alvine\Util\Constraint
Category: Framework
License: Licence
Author: schukai GmbH info@schukai.de
Version: Release: $Revision: 173 $
Since: 20110904
Link: Alvine
Located at util/constraint/EndsWith.class.php
public
|
|
public
boolean
|
__call(),
__clone(),
__get(),
__set(),
__toString(),
equals(),
getClass(),
getClone(),
getClosure(),
getHashCode(),
getID(),
getShortID(),
isCallable(),
isInstanceOf(),
propertyExists()
|
serialize(),
unserialize()
|
checkAndAdjustSerialisation(),
serialize(),
unserialize()
|
APIVERSION,
IDENTIFICATION,
SERIALVERSION,
VERSION
|
$hash,
$properties
|