<?php
namespace Bien\Glitch;
use Developer\Experience\Senior;
class Bio {
private string $name = 'Bien Nwinate';
private string $default_stack = 'LAMP';
private ?string $bio;
public function __construct (public string $init = 'Hello', public string $category = 'Full-Stack Web Dev') {
$this->bio = "{$this->init}<br/>";
}
public function initName(?string $name = NULL):static {
$this->bio .= "<br/>Name: {$name ?? $this->name}";
return $this;
}
public function initCategory(?string $category = NULL):static {
$this->bio .= "<br/>Category: {$category ?? $this->category}";
return $this;
}
public function initStack(?string $stack = NULL):static {
$this->bio .= "<br/>Stack: {$stack ?? $this->default_stack}";
return $this;
}
public function write():string {
return $this->bio;
}
}
$bio = new Bio('Hello there 😊,');
echo $bio->initName()
->initCategory()
->initStack()
->write();🔭 I'm a slave of CHRIST, performing the good works as GOD's workmanship in CHRIST.
Work Experience: Details on my LinkedIn
Hobbies: ˗ˏˋ ✞ ˎˊ˗ ᴊᴇꜱᴜꜱ ᡣ𐭩 Bible Study, </> Programming, 🎧ྀི Music, 🏃➡️ Running, ⚽ Football


