mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2025-12-31 21:47:53 -05:00
- Added missing PHPdocs - Corrected Syntax - Added noinspection parameters to PHPdoc for AJAX called functions - Added missing function return types - Added missing parameter types - Added public keyword to functions without visibility modifier - Corrected incorrectly formatted PHPdocs - Added public to constants and functions missing a visibility keyword
37 lines
497 B
PHP
37 lines
497 B
PHP
<?php
|
|
|
|
namespace App\Controllers;
|
|
|
|
use App\Models\Employee;
|
|
|
|
/**
|
|
* @property Employee employee
|
|
*/
|
|
class Office extends Secure_Controller
|
|
{
|
|
protected Employee $employee;
|
|
|
|
public function __construct()
|
|
{
|
|
parent::__construct('office', null, 'office');
|
|
}
|
|
|
|
/**
|
|
* @return void
|
|
*/
|
|
public function getIndex(): void
|
|
{
|
|
echo view('home/office');
|
|
}
|
|
|
|
/**
|
|
* @return void
|
|
*/
|
|
public function logout(): void
|
|
{
|
|
$this->employee = model(Employee::class);
|
|
|
|
$this->employee->logout();
|
|
}
|
|
}
|