code: public function setStatus( $status )
      {
          if (!in_array( intval( $status ), self::$statuses )) {
              throw new InvalidArgumentException( sprintf( 'Invalid status (%s)', $status ) );
          }
  
          $this->status = $status;
  
          return $this;
      }
docs: @param  int $status
  
  @return $this