Skip to content
Snippets Groups Projects
Commit fae32f43 authored by Márk Sági-Kazár's avatar Márk Sági-Kazár
Browse files

Merge pull request #9 from php-http/remove_awares

Remove Awares and Templates
parents 1acc74f0 e94b0cfd
No related branches found
No related tags found
No related merge requests found
<?php
namespace Http\Message;
/**
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
*/
interface MessageFactoryAware
{
/**
* @return MessageFactory
*/
public function getMessageFactory();
/**
* @param MessageFactory $messageFactory
*/
public function setMessageFactory(MessageFactory $messageFactory);
}
<?php
namespace Http\Message;
/**
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
*/
trait MessageFactoryAwareTemplate
{
/**
* @var MessageFactory
*/
protected $messageFactory;
/**
* {@inheritdoc}
*/
public function getMessageFactory()
{
return $this->messageFactory;
}
/**
* {@inheritdoc}
*/
public function setMessageFactory(MessageFactory $messageFactory)
{
$this->messageFactory = $messageFactory;
}
}
<?php
namespace Http\Message;
/**
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
*/
interface StreamFactoryAware
{
/**
* @return StreamFactory
*/
public function getStreamFactory();
/**
* @param StreamFactory $streamFactory
*/
public function setStreamFactory(StreamFactory $streamFactory);
}
<?php
namespace Http\Message;
/**
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
*/
trait StreamFactoryAwareTemplate
{
/**
* @var StreamFactory
*/
protected $streamFactory;
/**
* {@inheritdoc}
*/
public function getStreamFactory()
{
return $this->streamFactory;
}
/**
* {@inheritdoc}
*/
public function setStreamFactory(StreamFactory $streamFactory)
{
$this->streamFactory = $streamFactory;
}
}
<?php
namespace Http\Message;
/**
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
*/
interface UriFactoryAware
{
/**
* @return UriFactory
*/
public function getUriFactory();
/**
* @param UriFactory $uriFactory
*/
public function setUriFactory(UriFactory $uriFactory);
}
<?php
namespace Http\Message;
/**
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
*/
trait UriFactoryAwareTemplate
{
/**
* @var UriFactory
*/
protected $uriFactory;
/**
* {@inheritdoc}
*/
public function getUriFactory()
{
return $this->uriFactory;
}
/**
* {@inheritdoc}
*/
public function setUriFactory(UriFactory $uriFactory)
{
$this->uriFactory = $uriFactory;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment