isValid() && $response->getUrl()->match([ 'line.do/*', ]); } /** * {@inheritdoc} */ public function getCode() { $url = $this->getResponse()->getUrl(); $id = $url->getDirectoryPosition(2); return Utils::iframe($url->withPath("embed/{$id}/vertical"), $this->width, $this->height, 'border:1px solid #e7e7e7;'); } /** * {@inheritdoc} */ public function getWidth() { return 640; } /** * {@inheritdoc} */ public function getHeight() { return 640; } }