public function __construct(puzzle_message_RequestInterface $delegate) { $this->_delegate = $delegate; $stringUrl = $this->_delegate->getUrl(); $puzzleUrl = puzzle_Url::fromString($stringUrl); $this->_url = new tubepress_url_impl_puzzle_PuzzleBasedUrl($puzzleUrl); parent::__construct($this->_delegate); }
public function __construct(puzzle_message_ResponseInterface $delegate) { $this->_delegate = $delegate; $urlString = $this->_delegate->getEffectiveUrl(); if ($urlString !== null) { $puzzleUrl = puzzle_Url::fromString($urlString); $this->_effectiveUrl = new tubepress_url_impl_puzzle_PuzzleBasedUrl($puzzleUrl); } parent::__construct($this->_delegate); }