title: Check if parameter equals defined constant from model
body: <p>In my MeetingType model I have this constant:</p>
  
  <pre><code>const EXAMPLE_SHAREHOLDERS_MEETING =
  [
      'Shareholders meeting',
      'Management meeting',
      'General meeting',
      'Start meeting'
  ];
  </code></pre>
  
  <p>In my controller I call a function from my model like this:</p>
  
  <pre><code>$topics = MeetingType::get_meeting_type_topics($meetingTypeName);
  </code></pre>
  
  <p>Where <code>$meetingTypeName</code> equals 'Shareholders meeting'.</p>
  
  <p>How do I check in my function/switch if the passed parameter matches my constant array? This is the function I am talking about:</p>
  
  <pre><code>/**
   * Define and return MeetingType Topics. 
   *
   * @param string $meetingTypeName
   * @return array
   */
  public static function get_meeting_type_topics($meetingTypeName)
  {
      switch (MeetingType::EXAMPLE_SHAREHOLDERS_MEETING) {
          case 'Shareholders meeting':
              $topics = [
                  'Opening',
              ];
              break;
          case 'Management meeting':
              $topics = [
                  'Aanwezigen / afwezigen',
              ];
              break;
          case 'General meeting':
              $topics = [
                  'Opening',
              ];
              break;
          case 'Start meeting':
              $topics = [
                  "Uitleg van deze vergadering",
              ];
              break;
      }
  
      return $topics;
  }
  </code></pre>