mirror of
https://github.com/doctrine/common.git
synced 2026-03-23 22:32:07 +01:00
Add doctrine/persistence v4 support
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
],
|
||||
"require": {
|
||||
"php": "^7.1 || ^8.0",
|
||||
"doctrine/persistence": "^2.0 || ^3.0"
|
||||
"doctrine/persistence": "^2.0 || ^3.0 || ^4.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"doctrine/collections": "^1",
|
||||
|
||||
@@ -38,7 +38,7 @@ class LazyLoadableObjectClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getName()
|
||||
public function getName(): string
|
||||
{
|
||||
return $this->getReflectionClass()->getName();
|
||||
}
|
||||
@@ -46,7 +46,7 @@ class LazyLoadableObjectClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getIdentifier()
|
||||
public function getIdentifier(): array
|
||||
{
|
||||
return array_keys($this->identifier);
|
||||
}
|
||||
@@ -54,7 +54,7 @@ class LazyLoadableObjectClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getReflectionClass()
|
||||
public function getReflectionClass(): ReflectionClass
|
||||
{
|
||||
if ($this->reflectionClass === null) {
|
||||
$this->reflectionClass = new ReflectionClass(__NAMESPACE__ . '\LazyLoadableObject');
|
||||
@@ -66,7 +66,7 @@ class LazyLoadableObjectClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isIdentifier($fieldName)
|
||||
public function isIdentifier($fieldName): bool
|
||||
{
|
||||
return isset($this->identifier[$fieldName]);
|
||||
}
|
||||
@@ -74,7 +74,7 @@ class LazyLoadableObjectClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function hasField($fieldName)
|
||||
public function hasField($fieldName): bool
|
||||
{
|
||||
return isset($this->fields[$fieldName]);
|
||||
}
|
||||
@@ -82,7 +82,7 @@ class LazyLoadableObjectClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function hasAssociation($fieldName)
|
||||
public function hasAssociation($fieldName): bool
|
||||
{
|
||||
return isset($this->associations[$fieldName]);
|
||||
}
|
||||
@@ -90,7 +90,7 @@ class LazyLoadableObjectClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isSingleValuedAssociation($fieldName)
|
||||
public function isSingleValuedAssociation($fieldName): bool
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -98,7 +98,7 @@ class LazyLoadableObjectClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isCollectionValuedAssociation($fieldName)
|
||||
public function isCollectionValuedAssociation($fieldName): bool
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -106,7 +106,7 @@ class LazyLoadableObjectClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getFieldNames()
|
||||
public function getFieldNames(): array
|
||||
{
|
||||
return array_keys($this->fields);
|
||||
}
|
||||
@@ -114,7 +114,7 @@ class LazyLoadableObjectClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getIdentifierFieldNames()
|
||||
public function getIdentifierFieldNames(): array
|
||||
{
|
||||
return $this->getIdentifier();
|
||||
}
|
||||
@@ -122,7 +122,7 @@ class LazyLoadableObjectClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getAssociationNames()
|
||||
public function getAssociationNames(): array
|
||||
{
|
||||
return array_keys($this->associations);
|
||||
}
|
||||
@@ -130,7 +130,7 @@ class LazyLoadableObjectClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getTypeOfField($fieldName)
|
||||
public function getTypeOfField($fieldName): ?string
|
||||
{
|
||||
return 'string';
|
||||
}
|
||||
@@ -138,7 +138,7 @@ class LazyLoadableObjectClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getAssociationTargetClass($assocName)
|
||||
public function getAssociationTargetClass($assocName): ?string
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -146,7 +146,7 @@ class LazyLoadableObjectClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isAssociationInverseSide($assocName)
|
||||
public function isAssociationInverseSide($assocName): bool
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -154,7 +154,7 @@ class LazyLoadableObjectClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getAssociationMappedByTargetField($assocName)
|
||||
public function getAssociationMappedByTargetField($assocName): string
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -162,7 +162,7 @@ class LazyLoadableObjectClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getIdentifierValues($object)
|
||||
public function getIdentifierValues($object): array
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ class LazyLoadableObjectWithNullableTypehintsClassMetadata implements ClassMetad
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getName()
|
||||
public function getName(): string
|
||||
{
|
||||
return $this->getReflectionClass()->getName();
|
||||
}
|
||||
@@ -38,7 +38,7 @@ class LazyLoadableObjectWithNullableTypehintsClassMetadata implements ClassMetad
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getIdentifier()
|
||||
public function getIdentifier(): array
|
||||
{
|
||||
return array_keys($this->identifier);
|
||||
}
|
||||
@@ -46,7 +46,7 @@ class LazyLoadableObjectWithNullableTypehintsClassMetadata implements ClassMetad
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getReflectionClass()
|
||||
public function getReflectionClass(): ReflectionClass
|
||||
{
|
||||
if ($this->reflectionClass === null) {
|
||||
$this->reflectionClass = new ReflectionClass(__NAMESPACE__ . '\LazyLoadableObjectWithNullableTypehints');
|
||||
@@ -58,7 +58,7 @@ class LazyLoadableObjectWithNullableTypehintsClassMetadata implements ClassMetad
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isIdentifier($fieldName)
|
||||
public function isIdentifier($fieldName): bool
|
||||
{
|
||||
return isset($this->identifier[$fieldName]);
|
||||
}
|
||||
@@ -66,7 +66,7 @@ class LazyLoadableObjectWithNullableTypehintsClassMetadata implements ClassMetad
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function hasField($fieldName)
|
||||
public function hasField($fieldName): bool
|
||||
{
|
||||
return isset($this->fields[$fieldName]);
|
||||
}
|
||||
@@ -74,7 +74,7 @@ class LazyLoadableObjectWithNullableTypehintsClassMetadata implements ClassMetad
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function hasAssociation($fieldName)
|
||||
public function hasAssociation($fieldName): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -82,7 +82,7 @@ class LazyLoadableObjectWithNullableTypehintsClassMetadata implements ClassMetad
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isSingleValuedAssociation($fieldName)
|
||||
public function isSingleValuedAssociation($fieldName): bool
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -90,7 +90,7 @@ class LazyLoadableObjectWithNullableTypehintsClassMetadata implements ClassMetad
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isCollectionValuedAssociation($fieldName)
|
||||
public function isCollectionValuedAssociation($fieldName): bool
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -98,7 +98,7 @@ class LazyLoadableObjectWithNullableTypehintsClassMetadata implements ClassMetad
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getFieldNames()
|
||||
public function getFieldNames(): array
|
||||
{
|
||||
return array_keys($this->fields);
|
||||
}
|
||||
@@ -106,7 +106,7 @@ class LazyLoadableObjectWithNullableTypehintsClassMetadata implements ClassMetad
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getIdentifierFieldNames()
|
||||
public function getIdentifierFieldNames(): array
|
||||
{
|
||||
return $this->getIdentifier();
|
||||
}
|
||||
@@ -114,7 +114,7 @@ class LazyLoadableObjectWithNullableTypehintsClassMetadata implements ClassMetad
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getAssociationNames()
|
||||
public function getAssociationNames(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
@@ -122,7 +122,7 @@ class LazyLoadableObjectWithNullableTypehintsClassMetadata implements ClassMetad
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getTypeOfField($fieldName)
|
||||
public function getTypeOfField($fieldName): ?string
|
||||
{
|
||||
return 'string';
|
||||
}
|
||||
@@ -130,7 +130,7 @@ class LazyLoadableObjectWithNullableTypehintsClassMetadata implements ClassMetad
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getAssociationTargetClass($assocName)
|
||||
public function getAssociationTargetClass($assocName): ?string
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -138,7 +138,7 @@ class LazyLoadableObjectWithNullableTypehintsClassMetadata implements ClassMetad
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isAssociationInverseSide($assocName)
|
||||
public function isAssociationInverseSide($assocName): bool
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -146,7 +146,7 @@ class LazyLoadableObjectWithNullableTypehintsClassMetadata implements ClassMetad
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getAssociationMappedByTargetField($assocName)
|
||||
public function getAssociationMappedByTargetField($assocName): string
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -154,7 +154,7 @@ class LazyLoadableObjectWithNullableTypehintsClassMetadata implements ClassMetad
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getIdentifierValues($object)
|
||||
public function getIdentifierValues($object): array
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ class LazyLoadableObjectWithPHP81IntersectionTypeClassMetadata implements ClassM
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getName()
|
||||
public function getName(): string
|
||||
{
|
||||
return $this->getReflectionClass()->getName();
|
||||
}
|
||||
@@ -33,7 +33,7 @@ class LazyLoadableObjectWithPHP81IntersectionTypeClassMetadata implements ClassM
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getIdentifier()
|
||||
public function getIdentifier(): array
|
||||
{
|
||||
return array_keys($this->identifier);
|
||||
}
|
||||
@@ -41,7 +41,7 @@ class LazyLoadableObjectWithPHP81IntersectionTypeClassMetadata implements ClassM
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getReflectionClass()
|
||||
public function getReflectionClass(): ReflectionClass
|
||||
{
|
||||
if ($this->reflectionClass === null) {
|
||||
$this->reflectionClass = new ReflectionClass(__NAMESPACE__ . '\LazyLoadableObjectWithPHP81IntersectionType');
|
||||
@@ -53,7 +53,7 @@ class LazyLoadableObjectWithPHP81IntersectionTypeClassMetadata implements ClassM
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isIdentifier($fieldName)
|
||||
public function isIdentifier($fieldName): bool
|
||||
{
|
||||
return isset($this->identifier[$fieldName]);
|
||||
}
|
||||
@@ -61,7 +61,7 @@ class LazyLoadableObjectWithPHP81IntersectionTypeClassMetadata implements ClassM
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function hasField($fieldName)
|
||||
public function hasField($fieldName): bool
|
||||
{
|
||||
return isset($this->fields[$fieldName]);
|
||||
}
|
||||
@@ -69,7 +69,7 @@ class LazyLoadableObjectWithPHP81IntersectionTypeClassMetadata implements ClassM
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function hasAssociation($fieldName)
|
||||
public function hasAssociation($fieldName): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -77,7 +77,7 @@ class LazyLoadableObjectWithPHP81IntersectionTypeClassMetadata implements ClassM
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isSingleValuedAssociation($fieldName)
|
||||
public function isSingleValuedAssociation($fieldName): bool
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -85,7 +85,7 @@ class LazyLoadableObjectWithPHP81IntersectionTypeClassMetadata implements ClassM
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isCollectionValuedAssociation($fieldName)
|
||||
public function isCollectionValuedAssociation($fieldName): bool
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -93,7 +93,7 @@ class LazyLoadableObjectWithPHP81IntersectionTypeClassMetadata implements ClassM
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getFieldNames()
|
||||
public function getFieldNames(): array
|
||||
{
|
||||
return array_keys($this->fields);
|
||||
}
|
||||
@@ -101,7 +101,7 @@ class LazyLoadableObjectWithPHP81IntersectionTypeClassMetadata implements ClassM
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getIdentifierFieldNames()
|
||||
public function getIdentifierFieldNames(): array
|
||||
{
|
||||
return $this->getIdentifier();
|
||||
}
|
||||
@@ -109,7 +109,7 @@ class LazyLoadableObjectWithPHP81IntersectionTypeClassMetadata implements ClassM
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getAssociationNames()
|
||||
public function getAssociationNames(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
@@ -117,7 +117,7 @@ class LazyLoadableObjectWithPHP81IntersectionTypeClassMetadata implements ClassM
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getTypeOfField($fieldName)
|
||||
public function getTypeOfField($fieldName): ?string
|
||||
{
|
||||
return 'string';
|
||||
}
|
||||
@@ -125,7 +125,7 @@ class LazyLoadableObjectWithPHP81IntersectionTypeClassMetadata implements ClassM
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getAssociationTargetClass($assocName)
|
||||
public function getAssociationTargetClass($assocName): ?string
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -133,7 +133,7 @@ class LazyLoadableObjectWithPHP81IntersectionTypeClassMetadata implements ClassM
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isAssociationInverseSide($assocName)
|
||||
public function isAssociationInverseSide($assocName): bool
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -141,7 +141,7 @@ class LazyLoadableObjectWithPHP81IntersectionTypeClassMetadata implements ClassM
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getAssociationMappedByTargetField($assocName)
|
||||
public function getAssociationMappedByTargetField($assocName): string
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -149,7 +149,7 @@ class LazyLoadableObjectWithPHP81IntersectionTypeClassMetadata implements ClassM
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getIdentifierValues($object)
|
||||
public function getIdentifierValues($object): array
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ class LazyLoadableObjectWithPHP82UnionAndIntersectionTypeClassMetadata implement
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getName()
|
||||
public function getName(): string
|
||||
{
|
||||
return $this->getReflectionClass()->getName();
|
||||
}
|
||||
@@ -33,7 +33,7 @@ class LazyLoadableObjectWithPHP82UnionAndIntersectionTypeClassMetadata implement
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getIdentifier()
|
||||
public function getIdentifier(): array
|
||||
{
|
||||
return array_keys($this->identifier);
|
||||
}
|
||||
@@ -41,7 +41,7 @@ class LazyLoadableObjectWithPHP82UnionAndIntersectionTypeClassMetadata implement
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getReflectionClass()
|
||||
public function getReflectionClass(): ReflectionClass
|
||||
{
|
||||
if ($this->reflectionClass === null) {
|
||||
$this->reflectionClass = new ReflectionClass(__NAMESPACE__ . '\LazyLoadableObjectWithPHP82UnionAndIntersectionType');
|
||||
@@ -53,7 +53,7 @@ class LazyLoadableObjectWithPHP82UnionAndIntersectionTypeClassMetadata implement
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isIdentifier($fieldName)
|
||||
public function isIdentifier($fieldName): bool
|
||||
{
|
||||
return isset($this->identifier[$fieldName]);
|
||||
}
|
||||
@@ -61,7 +61,7 @@ class LazyLoadableObjectWithPHP82UnionAndIntersectionTypeClassMetadata implement
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function hasField($fieldName)
|
||||
public function hasField($fieldName): bool
|
||||
{
|
||||
return isset($this->fields[$fieldName]);
|
||||
}
|
||||
@@ -69,7 +69,7 @@ class LazyLoadableObjectWithPHP82UnionAndIntersectionTypeClassMetadata implement
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function hasAssociation($fieldName)
|
||||
public function hasAssociation($fieldName): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -77,7 +77,7 @@ class LazyLoadableObjectWithPHP82UnionAndIntersectionTypeClassMetadata implement
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isSingleValuedAssociation($fieldName)
|
||||
public function isSingleValuedAssociation($fieldName): bool
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -85,7 +85,7 @@ class LazyLoadableObjectWithPHP82UnionAndIntersectionTypeClassMetadata implement
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isCollectionValuedAssociation($fieldName)
|
||||
public function isCollectionValuedAssociation($fieldName): bool
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -93,7 +93,7 @@ class LazyLoadableObjectWithPHP82UnionAndIntersectionTypeClassMetadata implement
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getFieldNames()
|
||||
public function getFieldNames(): array
|
||||
{
|
||||
return array_keys($this->fields);
|
||||
}
|
||||
@@ -101,7 +101,7 @@ class LazyLoadableObjectWithPHP82UnionAndIntersectionTypeClassMetadata implement
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getIdentifierFieldNames()
|
||||
public function getIdentifierFieldNames(): array
|
||||
{
|
||||
return $this->getIdentifier();
|
||||
}
|
||||
@@ -109,7 +109,7 @@ class LazyLoadableObjectWithPHP82UnionAndIntersectionTypeClassMetadata implement
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getAssociationNames()
|
||||
public function getAssociationNames(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
@@ -117,7 +117,7 @@ class LazyLoadableObjectWithPHP82UnionAndIntersectionTypeClassMetadata implement
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getTypeOfField($fieldName)
|
||||
public function getTypeOfField($fieldName): ?string
|
||||
{
|
||||
return 'string';
|
||||
}
|
||||
@@ -125,7 +125,7 @@ class LazyLoadableObjectWithPHP82UnionAndIntersectionTypeClassMetadata implement
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getAssociationTargetClass($assocName)
|
||||
public function getAssociationTargetClass($assocName): ?string
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -133,7 +133,7 @@ class LazyLoadableObjectWithPHP82UnionAndIntersectionTypeClassMetadata implement
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isAssociationInverseSide($assocName)
|
||||
public function isAssociationInverseSide($assocName): bool
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -141,7 +141,7 @@ class LazyLoadableObjectWithPHP82UnionAndIntersectionTypeClassMetadata implement
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getAssociationMappedByTargetField($assocName)
|
||||
public function getAssociationMappedByTargetField($assocName): string
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -149,7 +149,7 @@ class LazyLoadableObjectWithPHP82UnionAndIntersectionTypeClassMetadata implement
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getIdentifierValues($object)
|
||||
public function getIdentifierValues($object): array
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ class LazyLoadableObjectWithPHP8UnionTypeClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getName()
|
||||
public function getName(): string
|
||||
{
|
||||
return $this->getReflectionClass()->getName();
|
||||
}
|
||||
@@ -33,7 +33,7 @@ class LazyLoadableObjectWithPHP8UnionTypeClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getIdentifier()
|
||||
public function getIdentifier(): array
|
||||
{
|
||||
return array_keys($this->identifier);
|
||||
}
|
||||
@@ -41,7 +41,7 @@ class LazyLoadableObjectWithPHP8UnionTypeClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getReflectionClass()
|
||||
public function getReflectionClass(): ReflectionClass
|
||||
{
|
||||
if ($this->reflectionClass === null) {
|
||||
$this->reflectionClass = new ReflectionClass(__NAMESPACE__ . '\LazyLoadableObjectWithPHP8UnionType');
|
||||
@@ -53,7 +53,7 @@ class LazyLoadableObjectWithPHP8UnionTypeClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isIdentifier($fieldName)
|
||||
public function isIdentifier($fieldName): bool
|
||||
{
|
||||
return isset($this->identifier[$fieldName]);
|
||||
}
|
||||
@@ -61,7 +61,7 @@ class LazyLoadableObjectWithPHP8UnionTypeClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function hasField($fieldName)
|
||||
public function hasField($fieldName): bool
|
||||
{
|
||||
return isset($this->fields[$fieldName]);
|
||||
}
|
||||
@@ -69,7 +69,7 @@ class LazyLoadableObjectWithPHP8UnionTypeClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function hasAssociation($fieldName)
|
||||
public function hasAssociation($fieldName): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -77,7 +77,7 @@ class LazyLoadableObjectWithPHP8UnionTypeClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isSingleValuedAssociation($fieldName)
|
||||
public function isSingleValuedAssociation($fieldName): bool
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -85,7 +85,7 @@ class LazyLoadableObjectWithPHP8UnionTypeClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isCollectionValuedAssociation($fieldName)
|
||||
public function isCollectionValuedAssociation($fieldName): bool
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -93,7 +93,7 @@ class LazyLoadableObjectWithPHP8UnionTypeClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getFieldNames()
|
||||
public function getFieldNames(): array
|
||||
{
|
||||
return array_keys($this->fields);
|
||||
}
|
||||
@@ -101,7 +101,7 @@ class LazyLoadableObjectWithPHP8UnionTypeClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getIdentifierFieldNames()
|
||||
public function getIdentifierFieldNames(): array
|
||||
{
|
||||
return $this->getIdentifier();
|
||||
}
|
||||
@@ -109,7 +109,7 @@ class LazyLoadableObjectWithPHP8UnionTypeClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getAssociationNames()
|
||||
public function getAssociationNames(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
@@ -117,7 +117,7 @@ class LazyLoadableObjectWithPHP8UnionTypeClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getTypeOfField($fieldName)
|
||||
public function getTypeOfField($fieldName): ?string
|
||||
{
|
||||
return 'string';
|
||||
}
|
||||
@@ -125,7 +125,7 @@ class LazyLoadableObjectWithPHP8UnionTypeClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getAssociationTargetClass($assocName)
|
||||
public function getAssociationTargetClass($assocName): ?string
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -133,7 +133,7 @@ class LazyLoadableObjectWithPHP8UnionTypeClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isAssociationInverseSide($assocName)
|
||||
public function isAssociationInverseSide($assocName): bool
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -141,7 +141,7 @@ class LazyLoadableObjectWithPHP8UnionTypeClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getAssociationMappedByTargetField($assocName)
|
||||
public function getAssociationMappedByTargetField($assocName): string
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -149,7 +149,7 @@ class LazyLoadableObjectWithPHP8UnionTypeClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getIdentifierValues($object)
|
||||
public function getIdentifierValues($object): array
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ class LazyLoadableObjectWithTraitClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getName()
|
||||
public function getName(): string
|
||||
{
|
||||
return $this->getReflectionClass()->getName();
|
||||
}
|
||||
@@ -32,7 +32,7 @@ class LazyLoadableObjectWithTraitClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getIdentifier()
|
||||
public function getIdentifier(): array
|
||||
{
|
||||
return array_keys($this->identifier);
|
||||
}
|
||||
@@ -40,7 +40,7 @@ class LazyLoadableObjectWithTraitClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getReflectionClass()
|
||||
public function getReflectionClass(): ReflectionClass
|
||||
{
|
||||
if ($this->reflectionClass === null) {
|
||||
$this->reflectionClass = new ReflectionClass(__NAMESPACE__ . '\LazyLoadableObjectWithTrait');
|
||||
@@ -52,7 +52,7 @@ class LazyLoadableObjectWithTraitClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isIdentifier($fieldName)
|
||||
public function isIdentifier($fieldName): bool
|
||||
{
|
||||
return isset($this->identifier[$fieldName]);
|
||||
}
|
||||
@@ -60,7 +60,7 @@ class LazyLoadableObjectWithTraitClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function hasField($fieldName)
|
||||
public function hasField($fieldName): bool
|
||||
{
|
||||
return isset($this->fields[$fieldName]);
|
||||
}
|
||||
@@ -68,7 +68,7 @@ class LazyLoadableObjectWithTraitClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function hasAssociation($fieldName)
|
||||
public function hasAssociation($fieldName): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -76,7 +76,7 @@ class LazyLoadableObjectWithTraitClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isSingleValuedAssociation($fieldName)
|
||||
public function isSingleValuedAssociation($fieldName): bool
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -84,7 +84,7 @@ class LazyLoadableObjectWithTraitClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isCollectionValuedAssociation($fieldName)
|
||||
public function isCollectionValuedAssociation($fieldName): bool
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -92,7 +92,7 @@ class LazyLoadableObjectWithTraitClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getFieldNames()
|
||||
public function getFieldNames(): array
|
||||
{
|
||||
return array_keys($this->fields);
|
||||
}
|
||||
@@ -100,7 +100,7 @@ class LazyLoadableObjectWithTraitClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getIdentifierFieldNames()
|
||||
public function getIdentifierFieldNames(): array
|
||||
{
|
||||
return $this->getIdentifier();
|
||||
}
|
||||
@@ -108,7 +108,7 @@ class LazyLoadableObjectWithTraitClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getAssociationNames()
|
||||
public function getAssociationNames(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
@@ -116,7 +116,7 @@ class LazyLoadableObjectWithTraitClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getTypeOfField($fieldName)
|
||||
public function getTypeOfField($fieldName): ?string
|
||||
{
|
||||
return 'string';
|
||||
}
|
||||
@@ -124,7 +124,7 @@ class LazyLoadableObjectWithTraitClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getAssociationTargetClass($assocName)
|
||||
public function getAssociationTargetClass($assocName): ?string
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -132,7 +132,7 @@ class LazyLoadableObjectWithTraitClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isAssociationInverseSide($assocName)
|
||||
public function isAssociationInverseSide($assocName): bool
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -140,7 +140,7 @@ class LazyLoadableObjectWithTraitClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getAssociationMappedByTargetField($assocName)
|
||||
public function getAssociationMappedByTargetField($assocName): string
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -148,7 +148,7 @@ class LazyLoadableObjectWithTraitClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getIdentifierValues($object)
|
||||
public function getIdentifierValues($object): array
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ class LazyLoadableObjectWithTypedPropertiesClassMetadata implements ClassMetadat
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getName()
|
||||
public function getName(): string
|
||||
{
|
||||
return $this->getReflectionClass()->getName();
|
||||
}
|
||||
@@ -46,7 +46,7 @@ class LazyLoadableObjectWithTypedPropertiesClassMetadata implements ClassMetadat
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getIdentifier()
|
||||
public function getIdentifier(): array
|
||||
{
|
||||
return array_keys($this->identifier);
|
||||
}
|
||||
@@ -54,7 +54,7 @@ class LazyLoadableObjectWithTypedPropertiesClassMetadata implements ClassMetadat
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getReflectionClass()
|
||||
public function getReflectionClass(): ReflectionClass
|
||||
{
|
||||
if ($this->reflectionClass === null) {
|
||||
$this->reflectionClass = new ReflectionClass(__NAMESPACE__ . '\LazyLoadableObjectWithTypedProperties');
|
||||
@@ -66,7 +66,7 @@ class LazyLoadableObjectWithTypedPropertiesClassMetadata implements ClassMetadat
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isIdentifier($fieldName)
|
||||
public function isIdentifier($fieldName): bool
|
||||
{
|
||||
return isset($this->identifier[$fieldName]);
|
||||
}
|
||||
@@ -74,7 +74,7 @@ class LazyLoadableObjectWithTypedPropertiesClassMetadata implements ClassMetadat
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function hasField($fieldName)
|
||||
public function hasField($fieldName): bool
|
||||
{
|
||||
return isset($this->fields[$fieldName]);
|
||||
}
|
||||
@@ -82,7 +82,7 @@ class LazyLoadableObjectWithTypedPropertiesClassMetadata implements ClassMetadat
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function hasAssociation($fieldName)
|
||||
public function hasAssociation($fieldName): bool
|
||||
{
|
||||
return isset($this->associations[$fieldName]);
|
||||
}
|
||||
@@ -90,7 +90,7 @@ class LazyLoadableObjectWithTypedPropertiesClassMetadata implements ClassMetadat
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isSingleValuedAssociation($fieldName)
|
||||
public function isSingleValuedAssociation($fieldName): bool
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -98,7 +98,7 @@ class LazyLoadableObjectWithTypedPropertiesClassMetadata implements ClassMetadat
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isCollectionValuedAssociation($fieldName)
|
||||
public function isCollectionValuedAssociation($fieldName): bool
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -106,7 +106,7 @@ class LazyLoadableObjectWithTypedPropertiesClassMetadata implements ClassMetadat
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getFieldNames()
|
||||
public function getFieldNames(): array
|
||||
{
|
||||
return array_keys($this->fields);
|
||||
}
|
||||
@@ -114,7 +114,7 @@ class LazyLoadableObjectWithTypedPropertiesClassMetadata implements ClassMetadat
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getIdentifierFieldNames()
|
||||
public function getIdentifierFieldNames(): array
|
||||
{
|
||||
return $this->getIdentifier();
|
||||
}
|
||||
@@ -122,7 +122,7 @@ class LazyLoadableObjectWithTypedPropertiesClassMetadata implements ClassMetadat
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getAssociationNames()
|
||||
public function getAssociationNames(): array
|
||||
{
|
||||
return array_keys($this->associations);
|
||||
}
|
||||
@@ -130,7 +130,7 @@ class LazyLoadableObjectWithTypedPropertiesClassMetadata implements ClassMetadat
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getTypeOfField($fieldName)
|
||||
public function getTypeOfField($fieldName): ?string
|
||||
{
|
||||
return 'string';
|
||||
}
|
||||
@@ -138,7 +138,7 @@ class LazyLoadableObjectWithTypedPropertiesClassMetadata implements ClassMetadat
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getAssociationTargetClass($assocName)
|
||||
public function getAssociationTargetClass($assocName): ?string
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -146,7 +146,7 @@ class LazyLoadableObjectWithTypedPropertiesClassMetadata implements ClassMetadat
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isAssociationInverseSide($assocName)
|
||||
public function isAssociationInverseSide($assocName): bool
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -154,7 +154,7 @@ class LazyLoadableObjectWithTypedPropertiesClassMetadata implements ClassMetadat
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getAssociationMappedByTargetField($assocName)
|
||||
public function getAssociationMappedByTargetField($assocName): string
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -162,7 +162,7 @@ class LazyLoadableObjectWithTypedPropertiesClassMetadata implements ClassMetadat
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getIdentifierValues($object)
|
||||
public function getIdentifierValues($object): array
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ class LazyLoadableObjectWithTypehintsClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getName()
|
||||
public function getName(): string
|
||||
{
|
||||
return $this->getReflectionClass()->getName();
|
||||
}
|
||||
@@ -48,7 +48,7 @@ class LazyLoadableObjectWithTypehintsClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getIdentifier()
|
||||
public function getIdentifier(): array
|
||||
{
|
||||
return array_keys($this->identifier);
|
||||
}
|
||||
@@ -56,7 +56,7 @@ class LazyLoadableObjectWithTypehintsClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getReflectionClass()
|
||||
public function getReflectionClass(): ReflectionClass
|
||||
{
|
||||
if ($this->reflectionClass === null) {
|
||||
$this->reflectionClass = new ReflectionClass(__NAMESPACE__ . '\LazyLoadableObjectWithTypehints');
|
||||
@@ -68,7 +68,7 @@ class LazyLoadableObjectWithTypehintsClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isIdentifier($fieldName)
|
||||
public function isIdentifier($fieldName): bool
|
||||
{
|
||||
return isset($this->identifier[$fieldName]);
|
||||
}
|
||||
@@ -76,7 +76,7 @@ class LazyLoadableObjectWithTypehintsClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function hasField($fieldName)
|
||||
public function hasField($fieldName): bool
|
||||
{
|
||||
return isset($this->fields[$fieldName]);
|
||||
}
|
||||
@@ -84,7 +84,7 @@ class LazyLoadableObjectWithTypehintsClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function hasAssociation($fieldName)
|
||||
public function hasAssociation($fieldName): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -92,7 +92,7 @@ class LazyLoadableObjectWithTypehintsClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isSingleValuedAssociation($fieldName)
|
||||
public function isSingleValuedAssociation($fieldName): bool
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -100,7 +100,7 @@ class LazyLoadableObjectWithTypehintsClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isCollectionValuedAssociation($fieldName)
|
||||
public function isCollectionValuedAssociation($fieldName): bool
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -108,7 +108,7 @@ class LazyLoadableObjectWithTypehintsClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getFieldNames()
|
||||
public function getFieldNames(): array
|
||||
{
|
||||
return array_keys($this->fields);
|
||||
}
|
||||
@@ -116,7 +116,7 @@ class LazyLoadableObjectWithTypehintsClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getIdentifierFieldNames()
|
||||
public function getIdentifierFieldNames(): array
|
||||
{
|
||||
return $this->getIdentifier();
|
||||
}
|
||||
@@ -124,7 +124,7 @@ class LazyLoadableObjectWithTypehintsClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getAssociationNames()
|
||||
public function getAssociationNames(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
@@ -132,7 +132,7 @@ class LazyLoadableObjectWithTypehintsClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getTypeOfField($fieldName)
|
||||
public function getTypeOfField($fieldName): ?string
|
||||
{
|
||||
return 'string';
|
||||
}
|
||||
@@ -140,7 +140,7 @@ class LazyLoadableObjectWithTypehintsClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getAssociationTargetClass($assocName)
|
||||
public function getAssociationTargetClass($assocName): ?string
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -148,7 +148,7 @@ class LazyLoadableObjectWithTypehintsClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isAssociationInverseSide($assocName)
|
||||
public function isAssociationInverseSide($assocName): bool
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -156,7 +156,7 @@ class LazyLoadableObjectWithTypehintsClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getAssociationMappedByTargetField($assocName)
|
||||
public function getAssociationMappedByTargetField($assocName): string
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -164,7 +164,7 @@ class LazyLoadableObjectWithTypehintsClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getIdentifierValues($object)
|
||||
public function getIdentifierValues($object): array
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ class LazyLoadableObjectWithVoidClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getName()
|
||||
public function getName(): string
|
||||
{
|
||||
return $this->getReflectionClass()->getName();
|
||||
}
|
||||
@@ -25,7 +25,7 @@ class LazyLoadableObjectWithVoidClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getIdentifier()
|
||||
public function getIdentifier(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
@@ -33,7 +33,7 @@ class LazyLoadableObjectWithVoidClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getReflectionClass()
|
||||
public function getReflectionClass(): ReflectionClass
|
||||
{
|
||||
if ($this->reflectionClass === null) {
|
||||
$this->reflectionClass = new ReflectionClass(__NAMESPACE__ . '\LazyLoadableObjectWithVoid');
|
||||
@@ -45,7 +45,7 @@ class LazyLoadableObjectWithVoidClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isIdentifier($fieldName)
|
||||
public function isIdentifier($fieldName): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -53,7 +53,7 @@ class LazyLoadableObjectWithVoidClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function hasField($fieldName)
|
||||
public function hasField($fieldName): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -61,7 +61,7 @@ class LazyLoadableObjectWithVoidClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function hasAssociation($fieldName)
|
||||
public function hasAssociation($fieldName): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -69,7 +69,7 @@ class LazyLoadableObjectWithVoidClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isSingleValuedAssociation($fieldName)
|
||||
public function isSingleValuedAssociation($fieldName): bool
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -77,7 +77,7 @@ class LazyLoadableObjectWithVoidClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isCollectionValuedAssociation($fieldName)
|
||||
public function isCollectionValuedAssociation($fieldName): bool
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -85,7 +85,7 @@ class LazyLoadableObjectWithVoidClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getFieldNames()
|
||||
public function getFieldNames(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
@@ -93,7 +93,7 @@ class LazyLoadableObjectWithVoidClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getIdentifierFieldNames()
|
||||
public function getIdentifierFieldNames(): array
|
||||
{
|
||||
return $this->getIdentifier();
|
||||
}
|
||||
@@ -101,7 +101,7 @@ class LazyLoadableObjectWithVoidClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getAssociationNames()
|
||||
public function getAssociationNames(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
@@ -109,7 +109,7 @@ class LazyLoadableObjectWithVoidClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getTypeOfField($fieldName)
|
||||
public function getTypeOfField($fieldName): ?string
|
||||
{
|
||||
return 'integer';
|
||||
}
|
||||
@@ -117,7 +117,7 @@ class LazyLoadableObjectWithVoidClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getAssociationTargetClass($assocName)
|
||||
public function getAssociationTargetClass($assocName): ?string
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -125,7 +125,7 @@ class LazyLoadableObjectWithVoidClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isAssociationInverseSide($assocName)
|
||||
public function isAssociationInverseSide($assocName): bool
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -133,7 +133,7 @@ class LazyLoadableObjectWithVoidClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getAssociationMappedByTargetField($assocName)
|
||||
public function getAssociationMappedByTargetField($assocName): string
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
@@ -141,7 +141,7 @@ class LazyLoadableObjectWithVoidClassMetadata implements ClassMetadata
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getIdentifierValues($object)
|
||||
public function getIdentifierValues($object): array
|
||||
{
|
||||
throw new BadMethodCallException('not implemented');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user