예제 #1
0
파일: TaxWriter.php 프로젝트: spryker/Tax
 /**
  * @param int $id
  *
  * @return void
  */
 public function deleteTaxSet($id)
 {
     $taxSetEntity = $this->queryContainer->queryTaxSet($id)->findOne();
     if ($taxSetEntity) {
         $taxSetEntity->delete();
     }
 }
예제 #2
0
파일: TaxReader.php 프로젝트: spryker/Tax
 /**
  * @param int $id
  *
  * @return bool
  */
 public function taxSetExists($id)
 {
     $taxSetQuery = $this->queryContainer->queryTaxSet($id);
     return $taxSetQuery->count() > 0;
 }