Skip to content

Commit 7cd2867

Browse files
remove useless accessor
1 parent 99a4f1a commit 7cd2867

2 files changed

Lines changed: 0 additions & 11 deletions

File tree

src/V2/Parsing/Inference/Field/SimpleField.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,6 @@ public function getFloatValue(): ?float
6161
return null !== $this->value ? (float) $this->value : null;
6262
}
6363

64-
/**
65-
* @return integer|null Integer representation of the field value.
66-
*/
67-
public function getIntValue(): ?int
68-
{
69-
return null !== $this->value ? (int) $this->value : null;
70-
}
71-
7264
/**
7365
* @return boolean|null Boolean representation of the field value.
7466
*/

tests/V2/Parsing/ExtractionResponseTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,12 +222,10 @@ public function testStandardFieldTypesMustExposeCorrectTypes(): void
222222
$fieldSimpleInt = $fields->get('field_simple_int');
223223
self::assertInstanceOf(SimpleField::class, $fieldSimpleInt);
224224
self::assertIsFloat($fieldSimpleInt->getFloatValue());
225-
self::assertIsInt($fieldSimpleInt->getIntValue());
226225

227226
$fieldSimpleZero = $fields->get('field_simple_zero');
228227
self::assertInstanceOf(SimpleField::class, $fieldSimpleZero);
229228
self::assertIsFloat($fieldSimpleZero->getFloatValue());
230-
self::assertIsInt($fieldSimpleZero->getIntValue());
231229

232230
$fieldSimpleBool = $fields->get('field_simple_bool');
233231
self::assertInstanceOf(SimpleField::class, $fieldSimpleBool);
@@ -237,7 +235,6 @@ public function testStandardFieldTypesMustExposeCorrectTypes(): void
237235
self::assertInstanceOf(SimpleField::class, $fieldSimpleNull);
238236
self::assertNull($fieldSimpleNull->value);
239237
self::assertNull($fieldSimpleNull->getStringValue());
240-
self::assertNull($fieldSimpleNull->getIntValue());
241238
self::assertNull($fieldSimpleNull->getFloatValue());
242239
self::assertNull($fieldSimpleNull->getBoolValue());
243240

0 commit comments

Comments
 (0)