-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathTransport.php
More file actions
38 lines (33 loc) · 933 Bytes
/
Transport.php
File metadata and controls
38 lines (33 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
namespace Ds\Bundle\TransportBundle\Transport;
use Ds\Bundle\TransportBundle\Model\Message;
use Ds\Bundle\TransportBundle\Entity\Profile;
/**
* Interface Transport
*/
interface Transport
{
/**
* Set profile
*
* @param \Ds\Bundle\TransportBundle\Entity\Profile $profile
* @return \Ds\Bundle\TransportBundle\Transport\Transport
*/
public function setProfile(Profile $profile);
/**
* Get profile
*
* @return \Ds\Bundle\TransportBundle\Entity\Profile
*/
public function getProfile();
/**
* Send a message
*
* @param \Ds\Bundle\TransportBundle\Model\Message $message
* @param \Ds\Bundle\TransportBundle\Entity\Profile $profile
* @return \Ds\Bundle\TransportBundle\Transport\Transport
* @throws \LogicException
* @throws \UnexpectedValueException
*/
public function send(Message $message, Profile $profile = null);
}