Comment Comment by bwoebi readonly is rather a misnomer for "writeonce" in PHP. And as such it also disallows repeated assignment in class scope, while private(set) has no such restriction. parent bwoebi 1 year ago