<?php
namespace Oyeaussie;
class About
{
public function __construct($intro = true)
{
if ($intro) {
$this->intro();
}
}
public function intro()
{
echo "Hello World! I am Guru! (Oyeaussie)";
$this->whatDoesItMean(['Oye', 'Aussie']);
}
public function __destruct()
{
echo "Thank you for visiting my profile. Have a lovely day!";
}
public function whatDoIDo()
{
echo "If you haven't guessed it by now, I love writing PHP code!";
$this->showProofOfWork();
}
protected function showProofOfWork($likeYourWork = true)
{
echo "Proof of my work is available on Github at https://github.com/oyeaussie/";
if ($likeYourWork) {
$this->showContactDetails();
}
}
protected function showContactDetails()
{
echo "You can reach me via email at " . $this->getEmailTo() . "@" . $this->getDomain() . "." . $this->getTLD() . " to discuss further.";
}
private function getEmailTo()
{
return "email";
}
private function getDomain()
{
return "oyeaussie";
}
private function getTLD()
{
return "dev";
}
protected function whatDoesItMean(array $words)
{
foreach ($words as $word) {
if (strtolower($word) === 'oye') {
echo "Oye in Punjabi means hey!";
}
if (strtolower($word) === 'aussie') {
echo "Aussie is a term of identification for people of all multicultural backgrounds that identify as an Australian.";
}
}
}
}
(new About())->whatDoIDo();