mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 11:33:17 +00:00
70 lines
1.1 KiB
PHP
70 lines
1.1 KiB
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Phraseanet
|
|
*
|
|
* (c) 2005-2016 Alchemy
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Alchemy\Phrasea\Order;
|
|
|
|
use Alchemy\Phrasea\Model\Entities\Order;
|
|
use Alchemy\Phrasea\Model\Entities\User;
|
|
|
|
class OrderDelivery
|
|
{
|
|
/**
|
|
* @var User
|
|
*/
|
|
private $admin;
|
|
|
|
/**
|
|
* @var Order
|
|
*/
|
|
private $order;
|
|
|
|
/**
|
|
* @var int
|
|
*/
|
|
private $quantity;
|
|
|
|
/**
|
|
* @param Order $deliveredOrder
|
|
* @param User $manager
|
|
* @param int $quantity
|
|
*/
|
|
public function __construct(Order $deliveredOrder, User $manager, $quantity)
|
|
{
|
|
$this->order = $deliveredOrder;
|
|
$this->admin = $manager;
|
|
$this->quantity = $quantity;
|
|
}
|
|
|
|
/**
|
|
* @return User
|
|
*/
|
|
public function getAdmin()
|
|
{
|
|
return $this->admin;
|
|
}
|
|
|
|
/**
|
|
* @return Order
|
|
*/
|
|
public function getOrder()
|
|
{
|
|
return $this->order;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getQuantity()
|
|
{
|
|
return $this->quantity;
|
|
}
|
|
}
|