. */ namespace SP\DataModel; defined('APP_ROOT') || die(); /** * Class ProfileBaseData * * @package SP\DataModel */ class UserProfileData extends DataModelBase implements DataModelInterface { /** * @var int */ public $id = 0; /** * @var string */ public $name = ''; /** * @var ProfileData */ public $profile; /** * @return string */ public function getName() { return $this->name; } /** * @param string $name */ public function setName($name) { $this->name = $name; } /** * @return int */ public function getId() { return (int)$this->id; } /** * @param int $id */ public function setId($id) { $this->id = (int)$id; } /** * @return ProfileData */ public function getProfile() { return $this->profile; } /** * @param ProfileData $profile */ public function setProfile(ProfileData $profile) { $this->profile = $profile; } }