Skip to content
This repository was archived by the owner on Jul 4, 2020. It is now read-only.

Commit 5d6cf5f

Browse files
committed
Rename ParserInterface to Parser
1 parent b1808e3 commit 5d6cf5f

File tree

11 files changed

+16
-16
lines changed

11 files changed

+16
-16
lines changed

src/SoapBox/Formatter/Parsers/ArrayParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
use InvalidArgumentException;
44

5-
class ArrayParser extends ParserInterface {
5+
class ArrayParser extends Parser {
66

77
private $array;
88

src/SoapBox/Formatter/Parsers/CsvParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use InvalidArgumentException;
44
use League\Csv\Reader;
55

6-
class CsvParser extends ParserInterface {
6+
class CsvParser extends Parser {
77

88
private $csv;
99

src/SoapBox/Formatter/Parsers/JsonParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php namespace SoapBox\Formatter\Parsers;
22

3-
class JsonParser extends ParserInterface {
3+
class JsonParser extends Parser {
44

55
private $json;
66

src/SoapBox/Formatter/Parsers/ParserInterface.php renamed to src/SoapBox/Formatter/Parsers/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* This interface describes the abilities of a parser which is able to transform
1010
* inputs to the object type.
1111
*/
12-
abstract class ParserInterface {
12+
abstract class Parser {
1313

1414
/**
1515
* Constructor is used to initialize the parser

src/SoapBox/Formatter/Parsers/XmlParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php namespace SoapBox\Formatter\Parsers;
22

3-
class XmlParser extends ParserInterface {
3+
class XmlParser extends Parser {
44

55
private $xml;
66

src/SoapBox/Formatter/Parsers/YamlParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use InvalidArgumentException;
44
use Spyc;
55

6-
class YamlParser extends ParserInterface {
6+
class YamlParser extends Parser {
77

88
private $array;
99

tests/unit/Parsers/ArrayParserTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
use stdClass;
44
use SoapBox\Formatter\Test\TestCase;
5-
use SoapBox\Formatter\Parsers\ParserInterface;
5+
use SoapBox\Formatter\Parsers\Parser;
66
use SoapBox\Formatter\Parsers\ArrayParser;
77

88
class ArrayParserTest extends TestCase {
99

1010
public function testArrayParserIsInstanceOfParserInterface() {
1111
$parser = new ArrayParser(new \stdClass);
12-
$this->assertTrue($parser instanceof ParserInterface);
12+
$this->assertTrue($parser instanceof Parser);
1313
}
1414

1515
public function testConstructorAcceptsSerializedArray() {

tests/unit/Parsers/CsvParserTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php namespace SoapBox\Formatter\Test\Parsers;
22

33
use SoapBox\Formatter\Test\TestCase;
4-
use SoapBox\Formatter\Parsers\ParserInterface;
4+
use SoapBox\Formatter\Parsers\Parser;
55
use SoapBox\Formatter\Parsers\CsvParser;
66

77
class CsvParserTest extends TestCase {
@@ -11,7 +11,7 @@ class CsvParserTest extends TestCase {
1111

1212
public function testCsvParserIsInstanceOfParserInterface() {
1313
$parser = new CsvParser('');
14-
$this->assertTrue($parser instanceof ParserInterface);
14+
$this->assertTrue($parser instanceof Parser);
1515
}
1616

1717
/**

tests/unit/Parsers/JsonParserTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?php namespace SoapBox\Formatter\Test\Parsers;
22

33
use SoapBox\Formatter\Test\TestCase;
4-
use SoapBox\Formatter\Parsers\ParserInterface;
4+
use SoapBox\Formatter\Parsers\Parser;
55
use SoapBox\Formatter\Parsers\JsonParser;
66

77
class JsonParserTest extends TestCase {
88

99
public function testJsonParserIsInstanceOfParserInterface() {
1010
$parser = new JsonParser('');
11-
$this->assertTrue($parser instanceof ParserInterface);
11+
$this->assertTrue($parser instanceof Parser);
1212
}
1313

1414
public function testtoArrayReturnsArrayRepresentationOfJsonObject() {

tests/unit/Parsers/XmlParserTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?php namespace SoapBox\Formatter\Test\Parsers;
22

33
use SoapBox\Formatter\Test\TestCase;
4-
use SoapBox\Formatter\Parsers\ParserInterface;
4+
use SoapBox\Formatter\Parsers\Parser;
55
use SoapBox\Formatter\Parsers\XmlParser;
66

77
class XmlParserTest extends TestCase {
88

99
public function testXmlParserIsInstanceOfParserInterface() {
1010
$parser = new XmlParser('');
11-
$this->assertTrue($parser instanceof ParserInterface);
11+
$this->assertTrue($parser instanceof Parser);
1212
}
1313

1414
public function testtoArrayReturnsArrayRepresenationOfXmlObject() {

0 commit comments

Comments
 (0)