public function init() { if ($this->sort === null) { throw new InvalidConfigException('The "sort" property must be set.'); } }