public function setData(DataContainer $WPost) { $this->_data = $WPost; $this->type = $WPost->getType(); }