public function getAssignmentForIdentifier($identifier)
    {
        $assignment = $this->assignments->find(array('actortype' => (string) $identifier));
        $access = ($assignment) ? $assignment->access : self::ACCESS_NEVER;

        return (int) $access;
    }
public function getAssignmentForIdentifier($identifier)
    {
        $assignment = $this->assignments->find(array('actortype' => (string) $identifier));
        $access = ($assignment) ? $assignment->access : self::ACCESS_NEVER;

        return (int) $access;
    }
public function getAssignmentForIdentifier ( $ identifier ) { $ assignment = $ this -> assignments -> find ( array ( 'actortype' => ( string ) $ identifier ) ) ; $ access = ( $ assignment ) ? $ assignment -> access : self :: ACCESS_NEVER ; return ( int ) $ access ; }
Return the assignment option.

@return int
Return the assignment option .