src/Image.php
public static function fromShape(
        Shape $shape,
        Name $name,
        array $options = [],
        Maker $maker = null
    ): self {
        switch ($shape) {
            case 'square':
                return new Square($name, $options, $maker);
            case 'tall':
                return new Tall($name, $options, $maker);
            case 'wide':
                return new Wide($name, $options, $maker);
            default:
                return new self($name, $options, $maker);
        }
    }
public static function fromShape(
        Shape $shape,
        Name $name,
        array $options = [],
        Maker $maker = null
    ): self {
        switch ($shape) {
            case 'square':
                return new Square($name, $options, $maker);
            case 'tall':
                return new Tall($name, $options, $maker);
            case 'wide':
                return new Wide($name, $options, $maker);
            default:
                return new self($name, $options, $maker);
        }
    }
public static function fromShape ( Shape $ shape , Name $ name , array $ options = [ ] , Maker $ maker = null ) : self { switch ( $ shape ) { case 'square' : return new Square ( $ name , $ options , $ maker ) ; case 'tall' : return new Tall ( $ name , $ options , $ maker ) ; case 'wide' : return new Wide ( $ name , $ options , $ maker ) ; default : return new self ( $ name , $ options , $ maker ) ; } }
Return an `Image` object of the appropriate class based on
a `Shape` value.

@param Values\Value[] $options options to pass to the URL maker class
Return an Image object of the appropriate class based on a Shape value .