22 lines
314 B
PHP
22 lines
314 B
PHP
|
<?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);
|
||
|
}
|
||
|
}
|