title: Warning: Missing Argument 1
body: <p>I am having some problems with my php code:  All information returns but I cannot figure out why I am getting the error.  For my index page I only inluded the line of code that is actually using that class there really is no other code other than some includes.  Im sure it is how I built my __contstruct but i am not sure of the approriate way of doing it.  I am missing something in how it is being called from the index page.</p>
  
  <p>This line of code for my __construct works w/o error but I do not want the variable assigned in my class.</p>
  
  <pre><code>public function __construct(){
      $this-&gt;user_id = '235454';
      $this-&gt;user_type = 'Full Time Employee';
  
  
  }
  </code></pre>
  
  <p><strong>This is my Class</strong></p>
  
  <pre><code>&lt;?php 
  
  class User
  {
  protected $user_id;
  protected $user_type;
  protected $name;
  public $first_name;
  public $last_name;
  public $email_address;
  
  public function __construct($user_id){
      $this-&gt;user_id = $user_id;
      $this-&gt;user_type = 'Full Time Employee';
  
  
  }
  
  
  public function __set($name, $value){
      $this-&gt;$name = $value;
  
  }
  
  public function __get($name){
      return $this-&gt;$name;
  
  }
  
  public function __destroy(){
  
  
  }
  
  
   }
  
   ?&gt;
  </code></pre>
  
  <p><strong>This is my code from my index page:</strong>  </p>
  
  <pre><code>&lt;?php
  
  ini_set('display_errors', 'On'); 
  error_reporting(E_ALL);
  
   $employee_id = new User(2365);
   $employee_type = new User();   
  
  echo 'Your employee ID is ' . '"' .$employee_id-&gt;user_id. '"' . ' your employement status is a n ' . '"' .$employee_type-&gt;user_type. '"';
  
  echo '&lt;br/&gt;';
  
   ?&gt;
  </code></pre>