Skip to content

Commit

Permalink
Fix trait annotations, add missed methods
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberiaResurrection committed May 24, 2020
1 parent fe515b1 commit 6b69b4d
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/MetadataV3/Edm/EntityContainer/EntitySet.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
*/
class EntitySet extends EdmBase
{
use HasDocumentation, HasAnnotations, HasValueAnnotation;
use HasDocumentation, HasAnnotations;
/**
* @var string $name
*/
Expand Down
2 changes: 1 addition & 1 deletion src/MetadataV3/Edm/ModelFunctionParameter.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
*/
class ModelFunctionParameter extends EdmBase
{
use HasType, HasCollation, HasValueAnnotation;
use HasType, HasValueAnnotation;
/**
* @var string $name
*/
Expand Down
5 changes: 5 additions & 0 deletions src/MetadataV3/Edm/OtherTypeConstructs/CollectionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,9 @@ public function getChildElements(): array
}
return [];
}

public function isAttribute(): bool
{
return false;
}
}
5 changes: 5 additions & 0 deletions src/MetadataV3/Edm/OtherTypeConstructs/RowType.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,9 @@ public function getChildElements(): array
{
return $this->propertyTypes;
}

public function isAttribute(): bool
{
return false;
}
}
7 changes: 3 additions & 4 deletions src/MetadataV3/Edm/Property.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,16 @@ class Property extends EdmBase
{
use HasValueAnnotation,
HasCommonPropertyAttributes,
HasDocumentation,
HasAccessors;
HasDocumentation;

public function __construct(
string $name,
string $type,
bool $nullable = null,
string $defaultValue = null,
int $maxLength = null,
int $fixedLength = null,
int
$precision = null,
int $precision = null,
int $scale = null,
bool $unicode = true,
EDMSimpleType $collection = null,
Expand Down

0 comments on commit 6b69b4d

Please sign in to comment.