クラスを継承している時に、基底クラスのコンストラクタは勝手に呼ばれないので、コンストラクタの中でparent::__constructを呼ばないといけない。
__construct.phpで、
こう書く。
基底クラスのコンストラクタも呼ばれる。
Sample/php/__construct/parent/src/__construct at master · bg1bgst333/Sample · GitHub
クラスを継承している時に、基底クラスのコンストラクタは勝手に呼ばれないので、コンストラクタの中でparent::__constructを呼ばないといけない。
__construct.phpで、
こう書く。
基底クラスのコンストラクタも呼ばれる。
Sample/php/__construct/parent/src/__construct at master · bg1bgst333/Sample · GitHub