What the hell happened? o_O

This commit is contained in:
Gergely POLONKAI 2012-10-08 20:45:50 +02:00
parent 66ee58de00
commit a3f696a47a
3 changed files with 52 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<?php <?php
namespace GergelyPolonkai\SMSSenderBundle\Command; namespace GergelyPolonkai\SmsSenderBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputInterface;

50
Model/SpooledSms.php Normal file
View File

@ -0,0 +1,50 @@
<?php
namespace GergelyPolonkai\SmsSenderBundle\Model;
use Doctrine\ORM\Mapping as ORM;
/**
* Entity to spool SMS messages
*
* @ORM\MappedSuperclass
*/
class SpooledSms
{
/**
* The recipient's mobile phone number
*
* @var string $recipient
*
* @ORM\Column(type="string", length=30, nullable=false)
*/
protected $recipient;
/**
* The message itself
*
* @var string $message
*
* @ORM\Column(type="text", nullable=false)
*/
protected $message;
/**
* Password locations. This must be an array of arrays containing the
* password's location and length
*
* @var array $passwordLocations
*
* @ORM\Column(type="array", name="password_locations", nullable=true)
*/
protected $passwordLocations;
/**
* True if the message is already sent
*
* @var boolean $sent
*
* @ORM\Column(type="boolean", nullable=false)
*/
protected $sent;
}

View File

@ -1,5 +1,5 @@
<?php <?php
namespace GergelyPolonkai\SMSSenderBundle\Service; namespace GergelyPolonkai\SmsSenderBundle\Service;
use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\ContainerInterface;
use RuntimeException; use RuntimeException;