Newscoop\Entity\User\Staff::getRoleId PHP Method

getRoleId() public method

Get role id
public getRoleId ( ) : integer
return integer
    public function getRoleId()
    {
        return $this->role ? $this->role->getId() : 0;
    }

Usage Example

コード例 #1
0
 public function getRoleId()
 {
     $this->__load();
     return parent::getRoleId();
 }