Skip to content

Commit

Permalink
Rename traits
Browse files Browse the repository at this point in the history
  • Loading branch information
webeweb committed Mar 11, 2020
1 parent d1016f2 commit 2d0e683
Show file tree
Hide file tree
Showing 86 changed files with 640 additions and 769 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@
* file that was distributed with this source code.
*/

namespace WBW\Library\SMSMode\Traits;
namespace WBW\Library\SMSMode\Model\Attribute;

use DateTime;

/**
* Date envoi trait.
* Date/time date envoi trait.
*
* @author webeweb <https://github.com/webeweb/>
* @package WBW\Library\SMSMode\Traits
* @package WBW\Library\SMSMode\Model\Attribute
*/
trait DateEnvoiTrait {
trait DateTimeDateEnvoiTrait {

/**
* Date envoi.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@
* file that was distributed with this source code.
*/

namespace WBW\Library\SMSMode\Traits;
namespace WBW\Library\SMSMode\Model\Attribute;

use DateTime;

/**
* Date reception trait.
* Date/time Date reception trait.
*
* @author webeweb <https://github.com/webeweb/>
* @package WBW\Library\SMSMode\Traits
* @package WBW\Library\SMSMode\Model\Attribute
*/
trait DateReceptionTrait {
trait DateTimeDateReceptionTrait {

/**
* Date reception.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@
* file that was distributed with this source code.
*/

namespace WBW\Library\SMSMode\Traits;
namespace WBW\Library\SMSMode\Model\Attribute;

use InvalidArgumentException;
use WBW\Library\SMSMode\API\SendingSMSBatchInterface;

/**
* Classe msg trait.
* Integer classe msg trait.
*
* @author webeweb <https://github.com/webeweb/>
* @package WBW\Library\SMSMode\Traits
* @package WBW\Library\SMSMode\Model\Attribute
*/
trait ClasseMsgTrait {
trait IntegerClasseMsgTrait {

/**
* Classe msg.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@
* file that was distributed with this source code.
*/

namespace WBW\Library\SMSMode\Traits;
namespace WBW\Library\SMSMode\Model\Attribute;

use InvalidArgumentException;

/**
* Nbr msg trait.
* Integer nbr msg trait.
*
* @author webeweb <https://github.com/webeweb/>
* @package WBW\Library\SMSMode\Traits
* @package WBW\Library\SMSMode\Model\Attribute
*/
trait NbrMsgTrait {
trait IntegerNbrMsgTrait {

/**
* Nbr msg.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@
* file that was distributed with this source code.
*/

namespace WBW\Library\SMSMode\Traits;
namespace WBW\Library\SMSMode\Model\Attribute;

use InvalidArgumentException;

/**
* Offset trait.
* Integer offset trait.
*
* @author webeweb <https://github.com/webeweb/>
* @package WBW\Library\SMSMode\Traits
* @package WBW\Library\SMSMode\Model\Attribute
*/
trait OffsetTrait {
trait IntegerOffsetTrait {

/**
* Offset.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
* file that was distributed with this source code.
*/

namespace WBW\Library\SMSMode\Traits;
namespace WBW\Library\SMSMode\Model\Attribute;

/**
* Access token trait.
* String access token trait.
*
* @author webeweb <https://github.com/webeweb/>
* @package WBW\Library\SMSMode\Traits
* @package WBW\Library\SMSMode\Model\Attribute
*/
trait AccessTokenTrait {
trait StringAccessTokenTrait {

/**
* Access token.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
* file that was distributed with this source code.
*/

namespace WBW\Library\SMSMode\Traits;
namespace WBW\Library\SMSMode\Model\Attribute;

/**
* Emetteur trait.
* String emetteur trait.
*
* @author webeweb <https://github.com/webeweb/>
* @package WBW\Library\SMSMode\Traits
* @package WBW\Library\SMSMode\Model\Attribute
*/
trait EmetteurTrait {
trait StringEmetteurTrait {

/**
* Emetteur.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
* file that was distributed with this source code.
*/

namespace WBW\Library\SMSMode\Traits;
namespace WBW\Library\SMSMode\Model\Attribute;

/**
* Message trait.
* String message trait.
*
* @author webeweb <https://github.com/webeweb/>
* @package WBW\Library\SMSMode\Traits
* @package WBW\Library\SMSMode\Model\Attribute
*/
trait MessageTrait {
trait StringMessageTrait {

/**
* Message.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
* file that was distributed with this source code.
*/

namespace WBW\Library\SMSMode\Traits;
namespace WBW\Library\SMSMode\Model\Attribute;

/**
* Mobile trait.
* String mobile trait.
*
* @author webeweb <https://github.com/webeweb/>
* @package WBW\Library\SMSMode\Traits
* @package WBW\Library\SMSMode\Model\Attribute
*/
trait MobileTrait {
trait StringMobileTrait {

/**
* Mobile.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
* file that was distributed with this source code.
*/

namespace WBW\Library\SMSMode\Traits;
namespace WBW\Library\SMSMode\Model\Attribute;

/**
* Nom trait.
* String nom trait.
*
* @author webeweb <https://github.com/webeweb/>
* @package WBW\Library\SMSMode\Traits
* @package WBW\Library\SMSMode\Model\Attribute
*/
trait NomTrait {
trait StringNomTrait {

/**
* Nom.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
* file that was distributed with this source code.
*/

namespace WBW\Library\SMSMode\Traits;
namespace WBW\Library\SMSMode\Model\Attribute;

/**
* Notification URL trait.
* String notification URL trait.
*
* @author webeweb <https://github.com/webeweb/>
* @package WBW\Library\SMSMode\Traits
* @package WBW\Library\SMSMode\Model\Attribute
*/
trait NotificationUrlTrait {
trait StringNotificationUrlTrait {

/**
* Notification URL.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
* file that was distributed with this source code.
*/

namespace WBW\Library\SMSMode\Traits;
namespace WBW\Library\SMSMode\Model\Attribute;

/**
* Numero trait.
* String numero trait.
*
* @author webeweb <https://github.com/webeweb/>
* @package WBW\Library\SMSMode\Traits
* @package WBW\Library\SMSMode\Model\Attribute
*/
trait NumeroTrait {
trait StringNumeroTrait {

/**
* Numero.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
* file that was distributed with this source code.
*/

namespace WBW\Library\SMSMode\Traits;
namespace WBW\Library\SMSMode\Model\Attribute;

/**
* Prenom trait.
* String prenom trait.
*
* @author webeweb <https://github.com/webeweb/>
* @package WBW\Library\SMSMode\Traits
* @package WBW\Library\SMSMode\Model\Attribute
*/
trait PrenomTrait {
trait StringPrenomTrait {

/**
* Prenom.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
* file that was distributed with this source code.
*/

namespace WBW\Library\SMSMode\Traits;
namespace WBW\Library\SMSMode\Model\Attribute;

/**
* Ref client trait.
* String ref client trait.
*
* @author webeweb <https://github.com/webeweb/>
* @package WBW\Library\SMSMode\Traits
* @package WBW\Library\SMSMode\Model\Attribute
*/
trait RefClientTrait {
trait StringRefClientTrait {

/**
* RefClient.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
* file that was distributed with this source code.
*/

namespace WBW\Library\SMSMode\Traits;
namespace WBW\Library\SMSMode\Model\Attribute;

/**
* Reference trait.
* String reference trait.
*
* @author webeweb <https://github.com/webeweb/>
* @package WBW\Library\SMSMode\Traits
* @package WBW\Library\SMSMode\Model\Attribute
*/
trait ReferenceTrait {
trait StringReferenceTrait {

/**
* Reference.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
* file that was distributed with this source code.
*/

namespace WBW\Library\SMSMode\Traits;
namespace WBW\Library\SMSMode\Model\Attribute;

/**
* SMS ID trait.
* String SMS ID trait.
*
* @author webeweb <https://github.com/webeweb/>
* @package WBW\Library\SMSMode\Traits
* @package WBW\Library\SMSMode\Model\Attribute
*/
trait SmsIDTrait {
trait StringSmsIDTrait {

/**
* SMS ID.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
* file that was distributed with this source code.
*/

namespace WBW\Library\SMSMode\Traits;
namespace WBW\Library\SMSMode\Model\Attribute;

/**
* Societe trait.
* String societe trait.
*
* @author webeweb <https://github.com/webeweb/>
* @package WBW\Library\SMSMode\Traits
* @package WBW\Library\SMSMode\Model\Attribute
*/
trait SocieteTrait {
trait StringSocieteTrait {

/**
* Societe.
Expand Down
4 changes: 2 additions & 2 deletions src/Model/Authentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace WBW\Library\SMSMode\Model;

use WBW\Library\SMSMode\Traits\AccessTokenTrait;
use WBW\Library\SMSMode\Model\Attribute\StringAccessTokenTrait;

/**
* Authentication.
Expand All @@ -21,7 +21,7 @@
*/
class Authentication {

use AccessTokenTrait;
use StringAccessTokenTrait;

/**
* Pass.
Expand Down
4 changes: 2 additions & 2 deletions src/Model/DeliveryReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace WBW\Library\SMSMode\Model;

use WBW\Library\SMSMode\Traits\NumeroTrait;
use WBW\Library\SMSMode\Model\Attribute\StringNumeroTrait;

/**
* Delivery report.
Expand All @@ -21,5 +21,5 @@
*/
class DeliveryReport extends AbstractResponse {

use NumeroTrait;
use StringNumeroTrait;
}
Loading

0 comments on commit 2d0e683

Please sign in to comment.