1
0
mirror of https://github.com/Intervention/image.git synced 2025-01-29 17:57:50 +01:00

renamed Argument::get() to Argument::value()

This commit is contained in:
Oliver Vogel 2014-05-14 16:35:06 +02:00
parent 3cd31b86ad
commit 2e98670930
2 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@ class Argument
return isset($matches[1]) ? lcfirst($matches[1]).'()' : 'Method';
}
public function get($default = null)
public function value($default = null)
{
$arguments = $this->command->arguments;
@ -43,7 +43,7 @@ class Argument
{
$fail = false;
$value = $this->get();
$value = $this->value();
if (is_null($value)) {
return $this;
@ -89,7 +89,7 @@ class Argument
public function between($x, $y)
{
$value = $this->type('numeric')->get();
$value = $this->type('numeric')->value();
if (is_null($value)) {
return $this;

View File

@ -200,7 +200,7 @@ class ArgumentTest extends PHPUnit_Framework_TestCase
private function validateArgument($argument, $value)
{
$this->assertInstanceOf('\Intervention\Image\Commands\Argument', $argument);
$this->assertEquals($value, $argument->get());
$this->assertEquals($value, $argument->value());
}
private function getMockedCommand($arguments = array())