Skip to content

Commit

Permalink
#32 fix namespaces, add use statements for validation, fix models
Browse files Browse the repository at this point in the history
  • Loading branch information
BrainsRage committed Jun 9, 2018
1 parent d6ba2dc commit 979956a
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/DirectApiService.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
use directapi\services\audiencetargets\AudienceTargetsService;
use directapi\services\bidmodifiers\BidModifiersService;
use directapi\services\bids\BidsService;
use directapi\services\bids\KeywordBidsService;
use directapi\services\campaigns\CampaignsService;
use directapi\services\changes\ChangesService;
use directapi\services\clients\ClientsService;
use directapi\services\keywordbids\KeywordBidsService;
use directapi\services\keywords\KeywordsService;
use directapi\services\reports\ReportsService;
use directapi\services\retargetinglists\RetargetingListsService;
Expand Down
3 changes: 1 addition & 2 deletions src/services/keywordbids/KeywordBidsService.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?php

namespace directapi\services\bids;
namespace directapi\services\keywordbids;


use directapi\common\criterias\LimitOffset;
use directapi\common\results\ActionResult;
use directapi\services\BaseService;
use directapi\services\keywordbids\criterias\KeywordBidsSelectionCriteria;
use directapi\services\keywordbids\enum\KeywordBidFieldEnum;
Expand Down
1 change: 1 addition & 0 deletions src/services/keywordbids/models/AuctionKeywordBidItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@


use directapi\components\Model;
use Symfony\Component\Validator\Constraints as Assert;

class AuctionKeywordBidItem extends Model
{
Expand Down
1 change: 1 addition & 0 deletions src/services/keywordbids/models/BiddingRuleItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

use directapi\components\Model;
use Symfony\Component\Validator\Context\ExecutionContextInterface;
use Symfony\Component\Validator\Constraints as Assert;

class BiddingRuleItem extends Model
{
Expand Down
1 change: 1 addition & 0 deletions src/services/keywordbids/models/CoverageItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@


use directapi\components\Model;
use Symfony\Component\Validator\Constraints as Assert;

class CoverageItem extends Model
{
Expand Down
1 change: 1 addition & 0 deletions src/services/keywordbids/models/KeywordBidActionResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace directapi\services\keywordbids\models;

use directapi\components\Model;
use Symfony\Component\Validator\Constraints as Assert;

class KeywordBidActionResult extends Model
{
Expand Down
1 change: 1 addition & 0 deletions src/services/keywordbids/models/KeywordBidGetItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use directapi\common\enum\PriorityEnum;
use directapi\components\Model;
use directapi\services\keywordbids\enum\ServingStatusEnum;
use Symfony\Component\Validator\Constraints as Assert;

class KeywordBidGetItem extends Model
{
Expand Down
6 changes: 1 addition & 5 deletions src/services/keywordbids/models/KeywordBidSetAutoItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use directapi\components\interfaces\ICallbackValidation;
use directapi\components\Model;
use Symfony\Component\Validator\Context\ExecutionContextInterface;
use Symfony\Component\Validator\Constraints as Assert;

class KeywordBidSetAutoItem extends Model implements ICallbackValidation
{
Expand All @@ -23,11 +24,6 @@ class KeywordBidSetAutoItem extends Model implements ICallbackValidation
*/
public $KeywordId;

/**
* @var int
*/
public $MaxBid;

/**
* @var BiddingRuleItem
* @Assert\Valid()
Expand Down
6 changes: 6 additions & 0 deletions src/services/keywordbids/models/NetworkByCoverage.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@


use directapi\components\Model;
use Symfony\Component\Validator\Constraints as Assert;

class NetworkByCoverage extends Model
{
Expand All @@ -24,4 +25,9 @@ class NetworkByCoverage extends Model
* )
*/
public $IncreasePercent;

/**
* @var int Ограничение на ставку, умноженное на 1 000 000. Целое число.
*/
public $BidCeiling;
}
1 change: 1 addition & 0 deletions src/services/keywordbids/models/NetworkCoverageItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace directapi\services\keywordbids\models;

use directapi\components\Model;
use Symfony\Component\Validator\Constraints as Assert;

class NetworkCoverageItem extends Model
{
Expand Down
1 change: 1 addition & 0 deletions src/services/keywordbids/models/NetworkItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@


use directapi\components\Model;
use Symfony\Component\Validator\Constraints as Assert;

class NetworkItem extends Model
{
Expand Down
6 changes: 6 additions & 0 deletions src/services/keywordbids/models/SearchByTrafficVolume.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@


use directapi\components\Model;
use Symfony\Component\Validator\Constraints as Assert;

class SearchByTrafficVolume extends Model
{
Expand All @@ -24,4 +25,9 @@ class SearchByTrafficVolume extends Model
* )
*/
public $IncreasePercent;

/**
* @var int Ограничение на ставку, умноженное на 1 000 000. Целое число.
*/
public $BidCeiling;
}
2 changes: 2 additions & 0 deletions src/services/keywordbids/models/SearchItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace directapi\services\keywordbids\models;

use Symfony\Component\Validator\Constraints as Assert;

class SearchItem
{
/**
Expand Down

0 comments on commit 979956a

Please sign in to comment.