/** * @param JsonApiTransformer $strategy */ public function __construct(JsonApiTransformer $strategy) { parent::__construct($strategy); }
public function __construct() { parent::__construct(new XmlStrategy()); }
/** * @param HalJsonTransformer $transformer * @param Router $router */ public function __construct(HalJsonTransformer $transformer, Router $router) { $this->mapUrls($transformer, $router); parent::__construct($transformer); }