TaxRuleRepository extends AbstractRepository
TaxRuleRepository
This class was generated by the Doctrine ORM. Add your own custom repository methods below.
Table of Contents
| $rules | ||
|---|---|---|
| $baseInfo | BaseInfo | |
| $authorizationChecker | AuthorizationCheckerInterface | |
| $tokenStorage | TokenStorageInterface | |
| $eccubeConfig | array | |
| __construct() | TaxRuleRepository constructor. | mixed | 
| newTaxRule() | 新たな TaxRule インスタンスを生成して返す. | TaxRule | 
| getByRule() | 現在有効な税率設定情報を返す | TaxRule | 
| getList() | getList | array|null | 
| delete() | 税規約の削除. | mixed | 
| clearCache() | TaxRule のキャッシュをクリアする. | mixed | 
| delete() | エンティティを削除します。 物理削除ではなく、del_flgを利用した論理削除を行います。 | mixed | 
| save() | エンティティの登録/保存します。 | mixed | 
| getCacheLifetime() | mixed | 
Properties
$rules
        private
                mixed
        $rules
         = []    
            
$baseInfo
        protected
                BaseInfo
        $baseInfo
            
            
$authorizationChecker
        protected
                AuthorizationCheckerInterface
        $authorizationChecker
            
            
$tokenStorage
        protected
                TokenStorageInterface
        $tokenStorage
            
            
$eccubeConfig
        protected
                array
        $eccubeConfig
            
            
Methods
__construct()
TaxRuleRepository constructor.
        public
                                __construct(
                    
                            $registry :
                RegistryInterface
                            
                    
            ,                 $tokenStorage :
                TokenStorageInterface
                            
                    
            ,                 $authorizationChecker :
                AuthorizationCheckerInterface
                            
                    
            ,                 $baseInfoRepository :
                BaseInfoRepository
                            
                    
            ,                 $eccubeConfig :
                EccubeConfig
                            
                )
        : mixed
    
    
            Parameters
- $registry : RegistryInterface
 - $tokenStorage : TokenStorageInterface
 - $authorizationChecker : AuthorizationCheckerInterface
 - $baseInfoRepository : BaseInfoRepository
 - $eccubeConfig : EccubeConfig
 
Return values
mixednewTaxRule()
新たな TaxRule インスタンスを生成して返す.
        public
                                newTaxRule(
                )
        : TaxRule
    
        現在適用されている丸め規則を設定する. 現在適用されている丸め規則が取得できない場合は四捨五入を設定する.
Return values
TaxRulegetByRule()
現在有効な税率設定情報を返す
        public
                                getByRule(
                    
            [                $Product :
                int|null|Product
                 = null ]            
                    
            [,                 $ProductClass :
                int|null|ProductClass
                 = null ]            
                    
            [,                 $Pref :
                int|null|Pref
                 = null ]            
                    
            [,                 $Country :
                int|null|Country
                 = null ]            
                )
        : TaxRule
    
    
            Parameters
- $Product : int|null|Product = null
 商品
- $ProductClass : int|null|ProductClass = null
 商品規格
- $Pref : int|null|Pref = null
 都道府県
- $Country : int|null|Country = null
 国
Tags
Return values
TaxRule —税設定情報
getList()
getList
        public
                                getList(
                )
        : array|null
    
    
    
        
            Return values
array|nulldelete()
税規約の削除.
        public
                                delete(
                    
                            $TaxRule :
                int|TaxRule
                            
                )
        : mixed
    
    
            Parameters
- $TaxRule : int|TaxRule
 税規約
Tags
Return values
mixedclearCache()
TaxRule のキャッシュをクリアする.
        public
                                clearCache(
                )
        : mixed
    
        getByRule() をコールすると、結果をキャッシュし、2回目以降はデータベースへアクセスしない. このメソッドをコールすると、キャッシュをクリアし、再度データベースを参照して結果を取得する.
Return values
mixeddelete()
エンティティを削除します。 物理削除ではなく、del_flgを利用した論理削除を行います。
        public
                                delete(
                    
                            $entity :
                AbstractEntity
                            
                )
        : mixed
    
    
            Parameters
- $entity : AbstractEntity
 
Return values
mixedsave()
エンティティの登録/保存します。
        public
                                save(
                    
                            $entity :
                mixed
                            
                )
        : mixed
    
    
            Parameters
- $entity : mixed
 
Return values
mixedgetCacheLifetime()
        protected
                                getCacheLifetime(
                )
        : mixed