Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * This file belongs to the HdM.Accounting project.
- * Created By: mathis
- * Creation date: 05.07.13
- * Creation time: 13:18
- */
- namespace HdM\Accounting\TypeConverter;
- use HdM\Accounting\Domain\Customer\Model\BusinessCustomer;
- use HdM\Accounting\Domain\Customer\Model\PrivateCustomer;
- class CustomerConverter extends AbstractPersistentInheritedObjectConverter {
- /**
- * needs to be configured in concrete sub class
- * @var string
- */
- protected $targetType = 'HdM\Accounting\Domain\Customer\Model\CustomerInterface';
- /**
- * needs to be configured in concrete sub class
- * @var array
- */
- protected $concreteSubClasses = array (
- PrivateCustomer::TYPE_IDENTIFIER => 'HdM\Accounting\Domain\Customer\Model\PrivateCustomer',
- BusinessCustomer::TYPE_IDENTIFIER => 'HdM\Accounting\Domain\Customer\Model\BusinessCustomer'
- );
- /**
- * @var string
- */
- protected $abstractClass = 'HdM\Accounting\Domain\Customer\Model\Customer';
- }
Advertisement
Add Comment
Please, Sign In to add comment