Skip to content

Instantly share code, notes, and snippets.

@mattsah
Created June 15, 2015 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattsah/9198bb5d350c79af3c90 to your computer and use it in GitHub Desktop.
Save mattsah/9198bb5d350c79af3c90 to your computer and use it in GitHub Desktop.
Scaffolded from Redub
<?php namespace Redub\Base {
class Person extends \Redub\ORM\Model
{
/**
* Fetch the values of the related groups from the database
*
* @access public
* @return Collection The groups values
*/
public function fetchGroups()
{
return $this->get('groups');
}
/**
* Fetch the values of the related phoneNumbers from the database
*
* @access public
* @return Collection The phoneNumbers values
*/
public function fetchPhoneNumbers()
{
return $this->get('phoneNumbers');
}
/**
* Fetch the value of the related team from the database
*
* @access public
* @return Entity The team value
*/
public function fetchTeam()
{
return $this->get('team');
}
/**
* Fetch the value of the related user from the database
*
* @access public
* @return Entity The user value
*/
public function fetchUser()
{
return $this->get('user');
}
/**
* Get the value of email
*
* @access public
* @return string The value of email
*/
public function getEmail()
{
return $this->get('email');
}
/**
* Get the value of firstName
*
* @access public
* @return string The value of firstName
*/
public function getFirstName()
{
return $this->get('firstName');
}
/**
* Get the value of id
*
* @access public
* @return integer The value of id
*/
public function getId()
{
return $this->get('id');
}
/**
* Get the value of lastName
*
* @access public
* @return string The value of lastName
*/
public function getLastName()
{
return $this->get('lastName');
}
/**
* Get the value of teamRank
*
* @access public
* @return integer The value of teamRank
*/
public function getTeamRank()
{
return $this->get('teamRank');
}
public function hasEmail()
{
}
public function hasFirstName()
{
}
public function hasGroups()
{
}
public function hasId()
{
}
public function hasLastName()
{
}
public function hasPhoneNumbers()
{
}
public function hasTeam()
{
}
public function hasTeamRank()
{
}
public function hasUser()
{
}
/**
* Set the value of email
*
* @access public
* @param string $value The value to set to email
* @return Entity The object instance for method chaining
*/
public function setEmail($value)
{
$this->set('email', $value);
return $this;
}
/**
* Set the value of firstName
*
* @access public
* @param string $value The value to set to firstName
* @return Entity The object instance for method chaining
*/
public function setFirstName($value)
{
$this->set('firstName', $value);
return $this;
}
/**
* Set the value of groups
*
* @access public
* @param hasMany $value The value to set to groups
* @return Entity The object instance for method chaining
*/
public function setGroups($value)
{
$this->set('groups', $value);
return $this;
}
/**
* Set the value of id
*
* @access public
* @param integer $value The value to set to id
* @return Entity The object instance for method chaining
*/
public function setId($value)
{
$this->set('id', $value);
return $this;
}
/**
* Set the value of lastName
*
* @access public
* @param string $value The value to set to lastName
* @return Entity The object instance for method chaining
*/
public function setLastName($value)
{
$this->set('lastName', $value);
return $this;
}
/**
* Set the value of phoneNumbers
*
* @access public
* @param hasMany $value The value to set to phoneNumbers
* @return Entity The object instance for method chaining
*/
public function setPhoneNumbers($value)
{
$this->set('phoneNumbers', $value);
return $this;
}
/**
* Set the value of team
*
* @access public
* @param hasOne $value The value to set to team
* @return Entity The object instance for method chaining
*/
public function setTeam($value)
{
$this->set('team', $value);
return $this;
}
/**
* Set the value of teamRank
*
* @access public
* @param integer $value The value to set to teamRank
* @return Entity The object instance for method chaining
*/
public function setTeamRank($value)
{
$this->set('teamRank', $value);
return $this;
}
/**
* Set the value of user
*
* @access public
* @param hasOne $value The value to set to user
* @return Entity The object instance for method chaining
*/
public function setUser($value)
{
$this->set('user', $value);
return $this;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment