title: PHP Class does not take parameters given
body: <p>My class looks like this:</p>
  
  <pre><code>class CropAvatar {
      private $src;
      private $data;
      private $file;
      public $srcDir;
      public $dstDir;
      private $dst;
      private $type;
      private $extension;
      private $msg;
  
      function __construct($src, $data, $file, $source, $destination) {
          $this -&gt; setSrc($src);
          $this -&gt; setData($data);
          $this -&gt; setFile($file);
          $this -&gt; crop($this -&gt; src, $this -&gt; dst, $this -&gt; data);
          $this -&gt; srcDir = $source;
          $this -&gt; dstDir = $destination;
      }
  </code></pre>
  
  <p>And this is how I call</p>
  
  <pre><code>$crop = new CropAvatar($_POST['avatar_src'], $_POST['avatar_data'], $_FILES['avatar_file'], $upload_path.'/tmp', $upload_path);
  </code></pre>
  
  <p>Somehow, "srcDir" and "dstDir" values are not set in constructor, no matter if public or private value(!) What am I doing wrong?</p>