public function __construct($ace = null)
{
$this->flags = new AceFlags();
$this->aceRights = new AceRights();
if ($ace instanceof AceType) {
$this->type = $ace;
} elseif (array_key_exists($ace, AceType::SHORT_NAME) || in_array($ace, AceType::SHORT_NAME, true)) {
$this->type = new AceType($ace);
} elseif ($ace) {
$this->decodeFromBinary($ace);
}
}