hendrikmaus/reynaldo

View on GitHub
src/Elements/HttpTransactionElement.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

namespace Hmaus\Reynaldo\Elements;

class HttpTransactionElement extends BaseElement implements ApiElement, ApiHttpTransaction
{
    public function getHttpRequest()
    {
        return $this->getFirstElementByType(HttpRequestElement::class);
    }

    public function getHttpResponse()
    {
        return $this->getFirstElementByType(HttpResponseElement::class);
    }
}