public function __construct( Safe $title ){ if( $title->isEmpty( ) ){ throw new Exception( "title for a node must not be empty." ); } $this->_title = $title->toString(); }