Compatible with Nette\Object