PHP Class Dumplie\Metadata\Exception\InvalidArgumentException

Inheritance: extends Exception
Show file Open project: dumplie/dumplie Class Usage Examples

Public Methods

Method Description
emptyValue ( string $value ) : InvalidArgumentException
expected ( string $expectedType, $receivedValue ) : InvalidArgumentException
fieldNameAlreadyExists ( string $fieldName, string $model ) : InvalidArgumentException
invalidMetadata ( Metadata $metadata, TypeSchema $model ) : InvalidArgumentException
metadataFieldNotFound ( string $modelName, string $field, MetadataId $id ) : InvalidArgumentException
unexpectedModel ( string $expected, string $received ) : InvalidArgumentException

Method Details

emptyValue() public static method

public static emptyValue ( string $value ) : InvalidArgumentException
$value string
return InvalidArgumentException

expected() public static method

public static expected ( string $expectedType, $receivedValue ) : InvalidArgumentException
$expectedType string
$receivedValue
return InvalidArgumentException

fieldNameAlreadyExists() public static method

public static fieldNameAlreadyExists ( string $fieldName, string $model ) : InvalidArgumentException
$fieldName string
$model string
return InvalidArgumentException

invalidMetadata() public static method

public static invalidMetadata ( Metadata $metadata, TypeSchema $model ) : InvalidArgumentException
$metadata Dumplie\Metadata\Metadata
$model Dumplie\Metadata\Schema\TypeSchema
return InvalidArgumentException

metadataFieldNotFound() public static method

public static metadataFieldNotFound ( string $modelName, string $field, MetadataId $id ) : InvalidArgumentException
$modelName string
$field string
$id Dumplie\Metadata\MetadataId
return InvalidArgumentException

unexpectedModel() public static method

public static unexpectedModel ( string $expected, string $received ) : InvalidArgumentException
$expected string
$received string
return InvalidArgumentException