HEX
Server: LiteSpeed
System: Linux s917.lon1.mysecurecloudhost.com 4.18.0-477.21.1.lve.1.el8.x86_64 #1 SMP Tue Sep 5 23:08:35 UTC 2023 x86_64
User: assibfaf (3034)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/assibfaf/public_html/prox-classes/Presenter/Profile/ProfilePresenter.php
<?php 
/**
 * @package    Proxim
 * @author     Davison Pro <davis@davisonpro.dev | https://davisonpro.dev>
 * @copyright  2020 Proxim
 * @version    1.0
 * @since      File available since Release 1.0
*/

namespace Proxim\Presenter\Profile;

use Exception;
use Proxim\Presenter\PresenterInterface;
use Proxim\User\Customer;

class ProfilePresenter implements PresenterInterface
{
    /**
     * @param Customer $customer
     *
     * @return ProfileLazyArray
     *
     * @throws Exception
     */
    public function present($customer)
    {
        if (!($customer instanceof Customer)) {
            throw new Exception('ProfilePresenter can only present instance of Customer');
        }

        return new ProfileLazyArray($customer);
    }
}