for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by Carl Owens ([email protected])
* Company: PartFire Ltd (www.partfire.co.uk)
* Copyright © 2016 PartFire Ltd. All rights reserved.
*
* User: Carl Owens
* Date: 28/11/2016
* Time: 16:07
* File: User.php
**/
namespace PartFire\MangoPayBundle\Services;
use PartFire\MangoPayBundle\Models\DTOs\UserBase as UserDto;
use PartFire\MangoPayBundle\Models\DTOs\UserLegal;
use PartFire\MangoPayBundle\Models\DTOs\UserNatural;
use PartFire\MangoPayBundle\Models\UserQueryInterface;
class User
{
* @var UserQueryInterface
*/
private $userQuery;
public function __construct(UserQueryInterface $userQuery)
$this->userQuery = $userQuery;
}
* @param UserDto $user
* @return mixed
public function createNatural(UserNatural $user)
return $this->userQuery->createNatural($user);
public function createLegal(UserLegal $user)
return $this->userQuery->createLegal($user);