__construct() protected method

This constructor initializes the session id based on what we receive in a cookie. We create a new session id and set a cookie with this id if we don't have a session id.
protected __construct ( )
 protected function __construct()
 {
     /* Call parent constructor to allow it to configure the session
      * id.
      */
     parent::__construct();
     /* Load the session object if it already exists. */
     $this->store = SimpleSAML_MemcacheStore::find($this->session_id);
     if ($this->store === NULL) {
         /* We didn't find the session. This may be because the
          * session has expired, or it could be because this is
          * a new session. In any case we create a new session.
          */
         $this->store = new SimpleSAML_MemcacheStore($this->session_id);
     }
 }
 /**
  * Initialize the session.
  *
  * @param SimpleSAML_Store $store The store to use.
  */
 protected function __construct(SimpleSAML_Store $store)
 {
     parent::__construct();
     $this->store = $store;
 }