Thumbor\Url\Builder::construct PHP Method

construct() public static method

public static construct ( $server, $secret, $original )
    public static function construct($server, $secret, $original)
    {
        return new self($server, $secret, $original);
    }

Usage Example

Example #1
0
 public function testUrl()
 {
     $server = 'http://thumbor.example.com';
     $secret = 'butts';
     $original = 'http://example.com/llamas.jpg';
     $builder = BuilderFactory::construct($server, $secret)->url($original);
     $expected = Builder::construct($server, $secret, $original);
     $this->assertEquals($expected, $builder);
 }
All Usage Examples Of Thumbor\Url\Builder::construct