PHP Trait Bravo3\Orm\Drivers\Common\StandardIdValidatorTrait

Datei anzeigen Open project: bravo3/orm

Public Methods

Method Description
validateId ( string $id ) : string[] Checks if a given entity ID is safe for the driver and returns an array of violation messages

Method Details

validateId() public method

The ID should be considered valid if the returned array is empty.
public validateId ( string $id ) : string[]
$id string
return string[]