Skip to content

Commit b941eb9

Browse files
committed
Rename GvConvert to Image.
1 parent f01c36a commit b941eb9

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

spec/drupol/phptree/Exporter/GvConvertSpec.php renamed to spec/drupol/phptree/Exporter/ImageSpec.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
namespace spec\drupol\phptree\Exporter;
66

7-
use drupol\phptree\Exporter\GvConvert;
7+
use drupol\phptree\Exporter\Image;
88
use drupol\phptree\Node\ValueNode;
99
use PhpSpec\ObjectBehavior;
1010

11-
class GvConvertSpec extends ObjectBehavior
11+
class ImageSpec extends ObjectBehavior
1212
{
1313
public function it_can_convert_a_tree_into_a_file()
1414
{
@@ -50,7 +50,7 @@ public function it_can_set_and_get_the_format()
5050
}
5151
public function it_is_initializable()
5252
{
53-
$this->shouldHaveType(GvConvert::class);
53+
$this->shouldHaveType(Image::class);
5454

5555
$this
5656
->getExecutable()

src/Exporter/GvConvert.php renamed to src/Exporter/Image.php

+7-7
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
use drupol\phptree\Node\NodeInterface;
88

99
/**
10-
* Class GvConvert.
10+
* Class Image.
1111
*/
12-
class GvConvert extends Gv
12+
class Image extends Gv
1313
{
1414
/**
1515
* @var string
@@ -21,7 +21,7 @@ class GvConvert extends Gv
2121
private $format = 'svg';
2222

2323
/**
24-
* GvDisplay constructor.
24+
* Image constructor.
2525
*/
2626
public function __construct()
2727
{
@@ -71,9 +71,9 @@ public function getFormat(): string
7171
*
7272
* @param string $executable
7373
*
74-
* @return \drupol\phptree\Exporter\GvConvert
74+
* @return \drupol\phptree\Exporter\Image
7575
*/
76-
public function setExecutable(string $executable): GvConvert
76+
public function setExecutable(string $executable): Image
7777
{
7878
$this->executable = $executable;
7979

@@ -83,9 +83,9 @@ public function setExecutable(string $executable): GvConvert
8383
/**
8484
* @param string $format
8585
*
86-
* @return \drupol\phptree\Exporter\GvConvert
86+
* @return \drupol\phptree\Exporter\Image
8787
*/
88-
public function setFormat(string $format): GvConvert
88+
public function setFormat(string $format): Image
8989
{
9090
$this->format = $format;
9191

0 commit comments

Comments
 (0)