<?php
namespace Tlf\User;
trait Role {
// should $role be an object? Or a name?
// If $role is an object, what's the function?
// Can a $role add permissions to itself? NO
// Can a $role tell you what permissions it has? YES
// Can a $role tell you what users are in it? YES
public function permissions(){
}
public function users(){
}
public function canUsers($action, $with = null){
//SHOULD this have a different name than in users?
// Roles can't actually DO anything. They're not actors.
//They're... titles with an associated set of rules
// Titles & rules can't actually do things.
}
}