Guest User

CustomerConverter.php

a guest
Jul 24th, 2013
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.97 KB | None | 0 0
  1. <?php
  2. /**
  3.  * This file belongs to the HdM.Accounting project.
  4.  * Created By: mathis
  5.  * Creation date: 05.07.13
  6.  * Creation time: 13:18
  7.  */
  8.  
  9. namespace HdM\Accounting\TypeConverter;
  10.  
  11.  
  12.  
  13.  
  14. use HdM\Accounting\Domain\Customer\Model\BusinessCustomer;
  15. use HdM\Accounting\Domain\Customer\Model\PrivateCustomer;
  16.  
  17. class CustomerConverter extends AbstractPersistentInheritedObjectConverter {
  18.  
  19.     /**
  20.      * needs to be configured in concrete sub class
  21.      * @var string
  22.      */
  23.     protected $targetType = 'HdM\Accounting\Domain\Customer\Model\CustomerInterface';
  24.  
  25.     /**
  26.      * needs to be configured in concrete sub class
  27.      * @var array
  28.      */
  29.     protected $concreteSubClasses = array (
  30.         PrivateCustomer::TYPE_IDENTIFIER => 'HdM\Accounting\Domain\Customer\Model\PrivateCustomer',
  31.         BusinessCustomer::TYPE_IDENTIFIER => 'HdM\Accounting\Domain\Customer\Model\BusinessCustomer'
  32.     );
  33.  
  34.     /**
  35.      * @var string
  36.      */
  37.     protected  $abstractClass = 'HdM\Accounting\Domain\Customer\Model\Customer';
  38.  
  39. }
Advertisement
Add Comment
Please, Sign In to add comment