PHPID-OL @2021
@DyanGalih
IT Enthusiast, Cloud and Mobile Security Enthusiast, Public speaker
A Simple Person Who Loves Code, Share Knowledge and Always Learning all about IT and security.
Design Patterns are reusable solutions to commonly
<?php
trait Message {
public function print() {
echo "OOP is fun! ";
}
}
class Welcome {
use Message;
}
$obj = new Welcome();
$obj->print();
Plain Old {Insert Language Here} Object is an simple approach that says you don't always need to use an extensive class to store data or perform logic.
class HelloWorld{
private $value;
public function getValue(): ?string
{
return $this->value;
}
public function setValue(string $value) {
$this->value = $value;
}
}
class HelloWorld{
/**
* @var string
*/
public $value;
/**
* @var string
*/
public $name;
}
Dependency Injection
Packagist
<x-component />
Alpha Release Soon.
?