|
<?php
|
|
|
|
namespace App\Services;
|
|
|
|
use PDO;
|
|
use PHPStan\Cache\Cache;
|
|
|
|
class GetInfoOfStudent
|
|
{
|
|
private $connect;
|
|
|
|
public function __construct($connection)
|
|
{
|
|
$this->connect = $connection;
|
|
}
|
|
|
|
public function getInfo($user): array
|
|
{
|
|
return $this->connect->getInfo($user);
|
|
}
|
|
}
|